org.jboss.webbeans.bootstrap.api.helpers
Class BootstrapBean

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

public class BootstrapBean
extends java.lang.Object
implements Bootstrap

A bean version of bootstrap that delegates to the underlying bootstrap impl

Author:
Pete Muir

Constructor Summary
BootstrapBean(Bootstrap bootstrap)
           
 
Method Summary
 void boot()
          Starts the boot process.
 EjbServices getEjbServices()
           
 JmsServices getJmsServices()
           
 JpaServices getJpaServices()
           
 WebBeansManager getManager()
          Get the manager used for this application.
 ResourceLoader getResourceLoader()
           
 ResourceServices getResourceServices()
           
 ServiceRegistry getServices()
          Get the services available to this bootstrap
 TransactionServices getTransactionServices()
           
 WebBeanDiscovery getWebBeanDiscovery()
           
 WebServices getWebServices()
           
 void initialize()
          Initialize the bootstrap: Create the manager and bind it to JNDI
 void setApplicationContext(BeanStore applicationContext)
          Set the bean store to use as backing for the application context
 void setEjbServices(EjbServices ejbServices)
           
 void setEnvironment(Environment environment)
          Set the environment in use, by default Environments.EE
 void setJmsServices(JmsServices jmsServices)
           
 void setJpaServices(JpaServices jpaServices)
           
 void setResourceLoader(ResourceLoader resourceLoader)
           
 void setResourceServices(ResourceServices resourceServices)
           
 void setTransactionServices(TransactionServices transactionServices)
           
 void setWebBeanDiscovery(WebBeanDiscovery webBeanDiscovery)
           
 void setWebServices(WebServices webServices)
           
 void shutdown()
          Causes the container to clean up and shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapBean

public BootstrapBean(Bootstrap bootstrap)
Method Detail

setEjbServices

public void setEjbServices(EjbServices ejbServices)

getEjbServices

public EjbServices getEjbServices()

setJpaServices

public void setJpaServices(JpaServices jpaServices)

getJpaServices

public JpaServices getJpaServices()

getResourceServices

public ResourceServices getResourceServices()

setResourceServices

public void setResourceServices(ResourceServices resourceServices)

setWebBeanDiscovery

public void setWebBeanDiscovery(WebBeanDiscovery webBeanDiscovery)

getWebBeanDiscovery

public WebBeanDiscovery getWebBeanDiscovery()

setTransactionServices

public void setTransactionServices(TransactionServices transactionServices)

getTransactionServices

public TransactionServices getTransactionServices()

setApplicationContext

public void setApplicationContext(BeanStore applicationContext)
Description copied from interface: Bootstrap
Set the bean store to use as backing for the application context

Specified by:
setApplicationContext in interface Bootstrap
Parameters:
applicationContext - the bean store to use

setResourceLoader

public void setResourceLoader(ResourceLoader resourceLoader)

getResourceLoader

public ResourceLoader getResourceLoader()

getWebServices

public WebServices getWebServices()

setWebServices

public void setWebServices(WebServices webServices)

getJmsServices

public JmsServices getJmsServices()

setJmsServices

public void setJmsServices(JmsServices jmsServices)

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

getManager

public WebBeansManager 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.

getServices

public ServiceRegistry getServices()
Description copied from interface: Bootstrap
Get the services available to this bootstrap

Specified by:
getServices in interface Bootstrap
Returns:
the services available

initialize

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

Specified by:
initialize in interface Bootstrap

setEnvironment

public void setEnvironment(Environment environment)
Description copied from interface: Bootstrap
Set the environment in use, by default Environments.EE

Specified by:
setEnvironment in interface Bootstrap
Parameters:
environment - the environment to use

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.