Package org.wso2.carbon.ui
Class CarbonServletContextInitializer
java.lang.Object
org.wso2.carbon.ui.CarbonServletContextInitializer
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public class CarbonServletContextInitializer
extends Object
implements javax.servlet.ServletContextListener
ServletContextListener that initializes the Carbon UI ServletContext with required attributes.
This listener is registered with the OSGi HTTP Whiteboard to ensure attributes are set
when the ServletContext is created by the container.
-
Constructor Summary
ConstructorsConstructorDescriptionCarbonServletContextInitializer(org.apache.tomcat.InstanceManager instanceManager, org.wso2.carbon.registry.core.service.RegistryService registryService, org.wso2.carbon.base.api.ServerConfigurationService serverConfig, org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.axis2.context.ConfigurationContext clientConfigurationContext, org.osgi.framework.BundleContext bundleContext, String serverURL, String indexPageURL, CustomUIDefenitions customUIDefenitions, ClassLoader bundleClassLoader, UIBundleDeployer uiBundleDeployer) -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(javax.servlet.ServletContextEvent sce) voidcontextInitialized(javax.servlet.ServletContextEvent sce)
-
Constructor Details
-
CarbonServletContextInitializer
public CarbonServletContextInitializer(org.apache.tomcat.InstanceManager instanceManager, org.wso2.carbon.registry.core.service.RegistryService registryService, org.wso2.carbon.base.api.ServerConfigurationService serverConfig, org.apache.axis2.context.ConfigurationContext configurationContext, org.apache.axis2.context.ConfigurationContext clientConfigurationContext, org.osgi.framework.BundleContext bundleContext, String serverURL, String indexPageURL, CustomUIDefenitions customUIDefenitions, ClassLoader bundleClassLoader, UIBundleDeployer uiBundleDeployer)
-
-
Method Details
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce) - Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce) - Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-