org.apache.myfaces.extensions.cdi.weld.startup
Class WeldAwareConfigurationListener

java.lang.Object
  extended by org.jboss.weld.servlet.api.helpers.ForwardingServletListener
      extended by org.jboss.weld.environment.servlet.Listener
          extended by org.apache.myfaces.extensions.cdi.weld.startup.WeldAwareConfigurationListener
All Implemented Interfaces:
EventListener, javax.servlet.http.HttpSessionListener, javax.servlet.ServletContextListener, javax.servlet.ServletRequestListener, Deactivatable, StartupEventBroadcaster, org.jboss.weld.servlet.api.ServletListener

@InvocationOrder(value=1)
public class WeldAwareConfigurationListener
extends org.jboss.weld.environment.servlet.Listener
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
           
 
Fields inherited from class org.jboss.weld.environment.servlet.Listener
BEAN_MANAGER_ATTRIBUTE_NAME
 
Constructor Summary
WeldAwareConfigurationListener()
           
 
Method Summary
 void broadcastStartup()
          
 void contextInitialized(javax.servlet.ServletContextEvent event)
          
 boolean isActivated()
          
protected  boolean isInitialized()
           
protected  void markAsInitialized()
           
 
Methods inherited from class org.jboss.weld.environment.servlet.Listener
checkContainers, contextDestroyed, createServletDeployment, createUrlScanner, delegate, findContainer
 
Methods inherited from class org.jboss.weld.servlet.api.helpers.ForwardingServletListener
requestDestroyed, requestInitialized, sessionCreated, sessionDestroyed
 
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
Constructor Detail

WeldAwareConfigurationListener

public WeldAwareConfigurationListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)

Specified by:
contextInitialized in interface javax.servlet.ServletContextListener
Overrides:
contextInitialized in class org.jboss.weld.environment.servlet.Listener

broadcastStartup

public void broadcastStartup()

Specified by:
broadcastStartup in interface StartupEventBroadcaster

markAsInitialized

protected void markAsInitialized()

isInitialized

protected boolean isInitialized()

isActivated

public boolean isActivated()

Specified by:
isActivated in interface Deactivatable


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