org.jboss.webbeans.bootstrap.api
Interface Bootstrap

All Known Implementing Classes:
AbstractBootstrap, BootstrapBean, ForwardingBootstrap, WebBeansBootstrap

public interface Bootstrap

Bootstrap API for Web Beans.

Author:
Pete Muir

Method Summary
 void boot()
          Starts the boot process.
 WebBeansManager getManager()
          Get the manager used for this application.
 ServiceRegistry getServices()
          Get the services available to this bootstrap
 void initialize()
          Initialize the bootstrap: Create the manager and bind it to JNDI
 void setApplicationContext(BeanStore beanStore)
          Set the bean store to use as backing for the application context
 void setEnvironment(Environment environment)
          Set the environment in use, by default Environments.EE
 void shutdown()
          Causes the container to clean up and shutdown
 

Method Detail

setApplicationContext

void setApplicationContext(BeanStore beanStore)
Set the bean store to use as backing for the application context

Parameters:
beanStore - the bean store to use

setEnvironment

void setEnvironment(Environment environment)
Set the environment in use, by default Environments.EE

Parameters:
environment - the environment to use

initialize

void initialize()
Initialize the bootstrap:

Throws:
java.lang.IllegalStateException - if not all the services required for the given environment are available

getManager

WebBeansManager getManager()
Get the manager used for this application.

Returns:
the manager. Unless initialize() has been called, this method will return null.

boot

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


shutdown

void shutdown()
Causes the container to clean up and shutdown


getServices

ServiceRegistry getServices()
Get the services available to this bootstrap

Returns:
the services available


Copyright © 2011. All Rights Reserved.