org.apache.webbeans.web.lifecycle.test
Class EnterpriseTestLifeCycle

java.lang.Object
  extended by org.apache.webbeans.lifecycle.AbstractLifeCycle
      extended by org.apache.webbeans.lifecycle.StandaloneLifeCycle
          extended by org.apache.webbeans.web.lifecycle.test.EnterpriseTestLifeCycle
All Implemented Interfaces:
ContainerLifecycle

public class EnterpriseTestLifeCycle
extends StandaloneLifeCycle

Ease the writing of the tests. Simulates container startup and stop functionality. This will scan all classes on the classpaths which have a beans.xml file.

Version:
$Rev: 892509 $ $Date: 2009-12-19 23:47:15 +0200 (Sat, 19 Dec 2009) $

Field Summary
 
Fields inherited from class org.apache.webbeans.lifecycle.AbstractLifeCycle
contextsService, logger, scannerService, webBeansContext
 
Constructor Summary
EnterpriseTestLifeCycle()
           
 
Method Summary
 void beforeStartApplication(Object object)
           
 void beforeStopApplication(Object endObject)
           
 void initApplication(Properties properties)
           
 
Methods inherited from class org.apache.webbeans.lifecycle.StandaloneLifeCycle
afterStopApplication, beforeInitApplication
 
Methods inherited from class org.apache.webbeans.lifecycle.AbstractLifeCycle
afterInitApplication, afterStartApplication, getBeanManager, getContextService, getLogger, getWebBeansContext, startApplication, stopApplication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnterpriseTestLifeCycle

public EnterpriseTestLifeCycle()
Method Detail

beforeStartApplication

public void beforeStartApplication(Object object)
Overrides:
beforeStartApplication in class StandaloneLifeCycle

initApplication

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

beforeStopApplication

public void beforeStopApplication(Object endObject)
Overrides:
beforeStopApplication in class StandaloneLifeCycle


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