org.jboss.webbeans.bootstrap.api
Interface Bootstrap

All Known Implementing Classes:
AbstractBootstrap, ForwardingBootstrap

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.
 void initialize()
          Initialize the bootstrap: Create the manager and bind it to JNDI
 void setApplicationContext(BeanStore beanStore)
           
 void setEjbDiscovery(EjbDiscovery ejbDiscovery)
          Set the EjbDiscovery to use
 void setEjbResolver(EjbResolver ejbResolver)
          Set the EjbResolver to use
 void setNamingContext(NamingContext namingContext)
          Set the NamingContext to use.
 void setResourceLoader(ResourceLoader resourceLoader)
          Set the ResourceLoader to use.
 void setTransactionServices(TransactionServices transactionServices)
          Set the transaction services provider to use.
 void setWebBeanDiscovery(WebBeanDiscovery webBeanDiscovery)
          Set the Web Bean Discovery to use
 void shutdown()
          Causes the container to clean up and shutdown
 

Method Detail

setWebBeanDiscovery

void setWebBeanDiscovery(WebBeanDiscovery webBeanDiscovery)
Set the Web Bean Discovery to use

Parameters:
webBeanDiscovery -

setEjbDiscovery

void setEjbDiscovery(EjbDiscovery ejbDiscovery)
Set the EjbDiscovery to use

Parameters:
ejbDiscovery -

setEjbResolver

void setEjbResolver(EjbResolver ejbResolver)
Set the EjbResolver to use

Parameters:
ejbResolver -

setNamingContext

void setNamingContext(NamingContext namingContext)
Set the NamingContext to use. By default @{link org.jboss.webbeans.resources.DefaultNamingContext} will be used

Parameters:
namingContext -

setResourceLoader

void setResourceLoader(ResourceLoader resourceLoader)
Set the ResourceLoader to use. By default @{link org.jboss.webbeans.resources.DefaultResourceLoader} will be used

Parameters:
resourceLoader -

setApplicationContext

void setApplicationContext(BeanStore beanStore)

setTransactionServices

void setTransactionServices(TransactionServices transactionServices)
Set the transaction services provider to use.

Parameters:
transactionServices - An implementation of TransactionService

initialize

void initialize()
Initialize the bootstrap:


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() the contexts should be available


shutdown

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



Copyright © 2008-2009. All Rights Reserved.