org.apache.myfaces.extensions.cdi.openwebbeans.startup
Class WebBeansAwareConfigurationListener

java.lang.Object
  extended by org.apache.webbeans.servlet.WebBeansConfigurationListener
      extended by org.apache.myfaces.extensions.cdi.openwebbeans.startup.WebBeansAwareConfigurationListener
All Implemented Interfaces:
EventListener, javax.servlet.http.HttpSessionListener, javax.servlet.ServletContextListener, javax.servlet.ServletRequestListener, Deactivatable, StartupEventBroadcaster

@InvocationOrder(value=1)
public class WebBeansAwareConfigurationListener
extends org.apache.webbeans.servlet.WebBeansConfigurationListener
implements StartupEventBroadcaster, Deactivatable

Allows to bootstrap the JavaEE5 + OpenWebBeans environment in a controlled manner.


Field Summary
protected static Map<ClassLoader,Boolean> initialized
           
protected  Logger logger
           
protected static Map<ClassLoader,org.apache.webbeans.spi.ContainerLifecycle> storedContainerLifecycle
           
 
Fields inherited from class org.apache.webbeans.servlet.WebBeansConfigurationListener
failoverService, lifeCycle
 
Constructor Summary
WebBeansAwareConfigurationListener()
           
 
Method Summary
 void broadcastStartup()
          
 void contextDestroyed(javax.servlet.ServletContextEvent event)
          
 void contextInitialized(javax.servlet.ServletContextEvent event)
          
 boolean isActivated()
          
protected  boolean isInitialized()
           
protected  void markAsInitialized()
           
 void requestDestroyed(javax.servlet.ServletRequestEvent event)
          
 void requestInitialized(javax.servlet.ServletRequestEvent event)
          
 void sessionCreated(javax.servlet.http.HttpSessionEvent event)
          
 void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
          
protected  void storeContainerLifecycle()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Logger logger

initialized

protected static Map<ClassLoader,Boolean> initialized

storedContainerLifecycle

protected static Map<ClassLoader,org.apache.webbeans.spi.ContainerLifecycle> storedContainerLifecycle
Constructor Detail

WebBeansAwareConfigurationListener

public WebBeansAwareConfigurationListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Overrides:
contextInitialized in class org.apache.webbeans.servlet.WebBeansConfigurationListener

requestInitialized

public void requestInitialized(javax.servlet.ServletRequestEvent event)

Specified by:
requestInitialized in interface javax.servlet.ServletRequestListener
Overrides:
requestInitialized in class org.apache.webbeans.servlet.WebBeansConfigurationListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)

Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener
Overrides:
contextDestroyed in class org.apache.webbeans.servlet.WebBeansConfigurationListener

requestDestroyed

public void requestDestroyed(javax.servlet.ServletRequestEvent event)

Specified by:
requestDestroyed in interface javax.servlet.ServletRequestListener
Overrides:
requestDestroyed in class org.apache.webbeans.servlet.WebBeansConfigurationListener

sessionCreated

public void sessionCreated(javax.servlet.http.HttpSessionEvent event)

Specified by:
sessionCreated in interface javax.servlet.http.HttpSessionListener
Overrides:
sessionCreated in class org.apache.webbeans.servlet.WebBeansConfigurationListener

sessionDestroyed

public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)

Specified by:
sessionDestroyed in interface javax.servlet.http.HttpSessionListener
Overrides:
sessionDestroyed in class org.apache.webbeans.servlet.WebBeansConfigurationListener

broadcastStartup

public void broadcastStartup()

Specified by:
broadcastStartup in interface StartupEventBroadcaster

markAsInitialized

protected void markAsInitialized()

isInitialized

protected boolean isInitialized()

storeContainerLifecycle

protected void storeContainerLifecycle()

isActivated

public boolean isActivated()

Specified by:
isActivated in interface Deactivatable


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.