org.apache.openejb.cdi
Class OpenEJBLifecycle

java.lang.Object
  extended by org.apache.openejb.cdi.OpenEJBLifecycle
All Implemented Interfaces:
org.apache.webbeans.spi.ContainerLifecycle

public class OpenEJBLifecycle
extends Object
implements org.apache.webbeans.spi.ContainerLifecycle

Version:
$Rev:$ $Date:$

Field Summary
protected  org.apache.webbeans.spi.ContextsService contextsService
           
static ThreadLocal<AppInfo> CURRENT_APP_INFO
           
static String OPENEJB_CDI_SKIP_CLASS_NOT_FOUND
           
protected  org.apache.webbeans.spi.ScannerService scannerService
          Discover bean classes
 
Constructor Summary
OpenEJBLifecycle(org.apache.webbeans.config.WebBeansContext webBeansContext)
           
 
Method Summary
protected  void afterInitApplication(Properties properties)
           
protected  void afterStartApplication(Object startupObject)
           
protected  void afterStopApplication(Object stopObject)
           
protected  void beforeInitApplication(Properties properties)
           
protected  void beforeStartApplication(Object startupObject)
           
protected  void beforeStopApplication(Object stopObject)
           
 javax.enterprise.inject.spi.BeanManager getBeanManager()
           
 org.apache.webbeans.spi.ContextsService getContextService()
           
protected  org.apache.webbeans.spi.JNDIService getJndiService()
           
protected  org.apache.webbeans.spi.ScannerService getScannerService()
           
protected  org.apache.webbeans.xml.WebBeansXMLConfigurator getXmlDeployer()
           
 void initApplication(Properties properties)
           
static ScheduledExecutorService initializeServletContext(javax.servlet.ServletContext servletContext, org.apache.webbeans.config.WebBeansContext context)
           
 void startApplication(Object startupObject)
           
 void startServletContext(javax.servlet.ServletContext servletContext)
           
 void stopApplication(Object endObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURRENT_APP_INFO

public static final ThreadLocal<AppInfo> CURRENT_APP_INFO

OPENEJB_CDI_SKIP_CLASS_NOT_FOUND

public static final String OPENEJB_CDI_SKIP_CLASS_NOT_FOUND
See Also:
Constant Field Values

scannerService

protected org.apache.webbeans.spi.ScannerService scannerService
Discover bean classes


contextsService

protected final org.apache.webbeans.spi.ContextsService contextsService
Constructor Detail

OpenEJBLifecycle

public OpenEJBLifecycle(org.apache.webbeans.config.WebBeansContext webBeansContext)
Method Detail

getBeanManager

public javax.enterprise.inject.spi.BeanManager getBeanManager()
Specified by:
getBeanManager in interface org.apache.webbeans.spi.ContainerLifecycle

startApplication

public void startApplication(Object startupObject)
Specified by:
startApplication in interface org.apache.webbeans.spi.ContainerLifecycle

stopApplication

public void stopApplication(Object endObject)
Specified by:
stopApplication in interface org.apache.webbeans.spi.ContainerLifecycle

getScannerService

protected org.apache.webbeans.spi.ScannerService getScannerService()
Returns:
the scannerService

getContextService

public org.apache.webbeans.spi.ContextsService getContextService()
Specified by:
getContextService in interface org.apache.webbeans.spi.ContainerLifecycle
Returns:
the contextsService

getXmlDeployer

protected org.apache.webbeans.xml.WebBeansXMLConfigurator getXmlDeployer()
Returns:
the xmlDeployer

getJndiService

protected org.apache.webbeans.spi.JNDIService getJndiService()
Returns:
the jndiService

initApplication

public void initApplication(Properties properties)
Specified by:
initApplication in interface org.apache.webbeans.spi.ContainerLifecycle

beforeInitApplication

protected void beforeInitApplication(Properties properties)

afterInitApplication

protected void afterInitApplication(Properties properties)

afterStartApplication

protected void afterStartApplication(Object startupObject)

startServletContext

public void startServletContext(javax.servlet.ServletContext servletContext)

initializeServletContext

public static ScheduledExecutorService initializeServletContext(javax.servlet.ServletContext servletContext,
                                                                org.apache.webbeans.config.WebBeansContext context)

afterStopApplication

protected void afterStopApplication(Object stopObject)
                             throws Exception
Throws:
Exception

beforeStartApplication

protected void beforeStartApplication(Object startupObject)

beforeStopApplication

protected void beforeStopApplication(Object stopObject)
                              throws Exception
Throws:
Exception


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.