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 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:
      contextInitialized in interface javax.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(javax.servlet.ServletContextEvent sce)
      Specified by:
      contextDestroyed in interface javax.servlet.ServletContextListener