Class WebBeansConfigurationListener

  • All Implemented Interfaces:
    EventListener, javax.servlet.http.HttpSessionListener, javax.servlet.ServletContextListener, javax.servlet.ServletRequestListener

    public class WebBeansConfigurationListener
    extends Object
    implements javax.servlet.ServletContextListener, javax.servlet.ServletRequestListener, javax.servlet.http.HttpSessionListener
    Initializing the beans container for using in an web application environment. This is the main entry point for starting the CDI container for a servlet. If you have a container with < Servlet-2.5 then use WebBeansConfigurationFilter and WebBeansConfigurationHttpSessionListener instead.
    • Field Detail

      • lifeCycle

        protected org.apache.webbeans.spi.ContainerLifecycle lifeCycle
        Manages the container lifecycle
    • Constructor Detail

      • WebBeansConfigurationListener

        public WebBeansConfigurationListener()
        Default constructor
    • Method Detail

      • contextInitialized

        public void contextInitialized​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextInitialized in interface javax.servlet.ServletContextListener
      • requestInitialized

        public void requestInitialized​(javax.servlet.ServletRequestEvent event)
        Specified by:
        requestInitialized in interface javax.servlet.ServletRequestListener
      • sessionCreated

        public void sessionCreated​(javax.servlet.http.HttpSessionEvent event)
        Specified by:
        sessionCreated in interface javax.servlet.http.HttpSessionListener
      • contextDestroyed

        public void contextDestroyed​(javax.servlet.ServletContextEvent event)
        Specified by:
        contextDestroyed in interface javax.servlet.ServletContextListener
      • requestDestroyed

        public void requestDestroyed​(javax.servlet.ServletRequestEvent event)
        Specified by:
        requestDestroyed in interface javax.servlet.ServletRequestListener
      • sessionDestroyed

        public void sessionDestroyed​(javax.servlet.http.HttpSessionEvent event)
        Specified by:
        sessionDestroyed in interface javax.servlet.http.HttpSessionListener