org.jboss.errai.container
Class BootstrapListener

java.lang.Object
  extended by org.jboss.errai.container.BootstrapListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class BootstrapListener
extends Object
implements javax.servlet.ServletContextListener

ErraiService bootstrap strategy: Either attach to an existing service instance or create a new one and bind it to JNDI. Currently limited to JBoss. The actually service instance will be exposed through the servlet context.

Note: This only works in conjunction with a Weld bootstrap listener. An AS 6 Weld is driven by the deployment framework and solution doesn't apply.

See Also:
AbstractErraiServlet, CDIExtensionPoints

Field Summary
protected  org.slf4j.Logger log
           
 
Constructor Summary
BootstrapListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected org.slf4j.Logger log
Constructor Detail

BootstrapListener

public BootstrapListener()
Method Detail

contextInitialized

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

contextDestroyed

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


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.