org.apache.webbeans.lifecycle
Class AbstractLifeCycle

java.lang.Object
  extended by org.apache.webbeans.lifecycle.AbstractLifeCycle
All Implemented Interfaces:
ContainerLifecycle
Direct Known Subclasses:
StandaloneLifeCycle

public abstract class AbstractLifeCycle
extends Object
implements ContainerLifecycle


Field Summary
protected  ContextsService contextsService
           
protected  WebBeansLogger logger
           
protected  ScannerService scannerService
          Discover bean classes
 
Constructor Summary
protected AbstractLifeCycle()
           
protected AbstractLifeCycle(Properties properties)
           
 
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)
           
 BeanManager getBeanManager()
           
 ContextsService getContextService()
           
protected  BeansDeployer getDeployer()
           
protected  JNDIService getJndiService()
           
protected  WebBeansLogger getLogger()
           
protected  ScannerService getScannerService()
           
protected  WebBeansXMLConfigurator getXmlDeployer()
           
 void initApplication(Properties properties)
           
 void startApplication(Object startupObject)
           
 void stopApplication(Object endObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected WebBeansLogger logger

scannerService

protected ScannerService scannerService
Discover bean classes


contextsService

protected final ContextsService contextsService
Constructor Detail

AbstractLifeCycle

protected AbstractLifeCycle()

AbstractLifeCycle

protected AbstractLifeCycle(Properties properties)
Method Detail

getBeanManager

public BeanManager getBeanManager()
Specified by:
getBeanManager in interface ContainerLifecycle

startApplication

public void startApplication(Object startupObject)
                      throws Exception
Specified by:
startApplication in interface ContainerLifecycle
Throws:
Exception

stopApplication

public void stopApplication(Object endObject)
Specified by:
stopApplication in interface ContainerLifecycle

getLogger

protected WebBeansLogger getLogger()
Returns:
the logger

getScannerService

protected ScannerService getScannerService()
Returns:
the scannerService

getContextService

public ContextsService getContextService()
Specified by:
getContextService in interface ContainerLifecycle
Returns:
the contextsService

getDeployer

protected BeansDeployer getDeployer()
Returns:
the deployer

getXmlDeployer

protected WebBeansXMLConfigurator getXmlDeployer()
Returns:
the xmlDeployer

getJndiService

protected JNDIService getJndiService()
Returns:
the jndiService

initApplication

public void initApplication(Properties properties)
Specified by:
initApplication in interface ContainerLifecycle

beforeInitApplication

protected void beforeInitApplication(Properties properties)

afterInitApplication

protected void afterInitApplication(Properties properties)

afterStartApplication

protected void afterStartApplication(Object startupObject)
                              throws Exception
Throws:
Exception

afterStopApplication

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

beforeStartApplication

protected void beforeStartApplication(Object startupObject)
                               throws Exception
Throws:
Exception

beforeStopApplication

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


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