org.apache.webbeans.lifecycle.test
Class OpenWebBeansTestLifeCycle

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

public class OpenWebBeansTestLifeCycle
extends StandaloneLifeCycle

Ease the writing of the tests. Simulates container startup and stop functionality and allow injection of classes which should be scanned by using the OpenWebBeansTestMetaDataDiscoveryService.

Version:
$Rev$ $Date$

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

Constructor Detail

OpenWebBeansTestLifeCycle

public OpenWebBeansTestLifeCycle()
Method Detail

initApplication

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

getScannerService

public ScannerService getScannerService()
Overrides:
getScannerService in class AbstractLifeCycle
Returns:
the scannerService


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