org.jboss.webbeans.bootstrap
Class WebBeansBootstrap

java.lang.Object
  extended by org.jboss.webbeans.bootstrap.api.helpers.AbstractBootstrap
      extended by org.jboss.webbeans.bootstrap.WebBeansBootstrap
All Implemented Interfaces:
Bootstrap

public class WebBeansBootstrap
extends AbstractBootstrap
implements Bootstrap

Common bootstrapping functionality that is run at application startup and detects and register beans

Author:
Pete Muir

Constructor Summary
WebBeansBootstrap()
           
 
Method Summary
protected  void beginApplication(BeanStore applicationBeanStore)
           
protected  void beginDeploy(BeanStore requestBeanStore)
           
 void boot()
          Starts the boot process.
protected  void createContexts()
           
protected  void endDeploy(BeanStore requestBeanStore)
           
 ManagerImpl getManager()
          Get the manager used for this application.
static java.lang.String getVersion()
          Gets version information
 void initialize()
          Initialize the bootstrap: Create the manager and bind it to JNDI
protected  void initializeContexts()
           
protected  void registerBeans(java.lang.Iterable<java.lang.Class<?>> classes, java.util.Collection<AnnotatedClass<?>> xmlClasses, java.lang.Iterable<AbstractJavaEEResourceBean<?>> resourceBeans, EjbDescriptorCache ejbDescriptors)
          Register the bean with the getManager(), including any standard (built in) beans
 void shutdown()
          Causes the container to clean up and shutdown
 
Methods inherited from class org.jboss.webbeans.bootstrap.api.helpers.AbstractBootstrap
getApplicationContext, getEjbServices, getEnvironment, getResourceLoader, getServices, getTransactionServices, getWebBeanDiscovery, setApplicationContext, setEjbServices, setEnvironment, setResourceLoader, setTransactionServices, setWebBeanDiscovery, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.webbeans.bootstrap.api.Bootstrap
getServices, setApplicationContext, setEnvironment
 

Constructor Detail

WebBeansBootstrap

public WebBeansBootstrap()
Method Detail

initialize

public void initialize()
Description copied from interface: Bootstrap
Initialize the bootstrap:

Specified by:
initialize in interface Bootstrap

getManager

public ManagerImpl getManager()
Description copied from interface: Bootstrap
Get the manager used for this application.

Specified by:
getManager in interface Bootstrap
Returns:
the manager. Unless Bootstrap.initialize() has been called, this method will return null.

registerBeans

protected void registerBeans(java.lang.Iterable<java.lang.Class<?>> classes,
                             java.util.Collection<AnnotatedClass<?>> xmlClasses,
                             java.lang.Iterable<AbstractJavaEEResourceBean<?>> resourceBeans,
                             EjbDescriptorCache ejbDescriptors)
Register the bean with the getManager(), including any standard (built in) beans

Parameters:
classes - The classes to register as Web Beans

boot

public void boot()
Description copied from interface: Bootstrap
Starts the boot process. Discovers the beans and registers them with the getManager(). Also resolves the injection points. Before running Bootstrap.boot() Bootstrap.initialize() must have been called and the contexts should be available

Specified by:
boot in interface Bootstrap

getVersion

public static java.lang.String getVersion()
Gets version information

Returns:
The implementation version from the Bootstrap class package.

initializeContexts

protected void initializeContexts()

createContexts

protected void createContexts()

beginApplication

protected void beginApplication(BeanStore applicationBeanStore)

beginDeploy

protected void beginDeploy(BeanStore requestBeanStore)

endDeploy

protected void endDeploy(BeanStore requestBeanStore)

shutdown

public void shutdown()
Description copied from interface: Bootstrap
Causes the container to clean up and shutdown

Specified by:
shutdown in interface Bootstrap


Copyright © 2011. All Rights Reserved.