org.jboss.webbeans.bootstrap
Class WebBeansBootstrap

java.lang.Object
  extended by org.jboss.webbeans.bootstrap.WebBeansBootstrap
Direct Known Subclasses:
PropertiesBasedBootstrap

public abstract class WebBeansBootstrap
extends java.lang.Object

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

Author:
Pete Muir

Constructor Summary
WebBeansBootstrap()
           
 
Method Summary
 void boot()
          Starts the boot process.
protected abstract  EjbDiscovery getEjbDiscovery()
           
 ManagerImpl getManager()
           
abstract  ResourceLoader getResourceLoader()
           
static java.lang.String getVersion()
          Gets version information
protected abstract  WebBeanDiscovery getWebBeanDiscovery()
           
protected  void initManager(NamingContext namingContext, EjbResolver ejbResolver, ResourceLoader resourceLoader)
           
protected  void registerBeans(java.lang.Iterable<java.lang.Class<?>> classes)
          Register the bean with the getManager(), including any standard (built in) beans
protected  void validateBootstrap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebBeansBootstrap

public WebBeansBootstrap()
Method Detail

initManager

protected void initManager(NamingContext namingContext,
                           EjbResolver ejbResolver,
                           ResourceLoader resourceLoader)

getManager

public ManagerImpl getManager()

getWebBeanDiscovery

protected abstract WebBeanDiscovery getWebBeanDiscovery()

getEjbDiscovery

protected abstract EjbDiscovery getEjbDiscovery()

getResourceLoader

public abstract ResourceLoader getResourceLoader()

validateBootstrap

protected void validateBootstrap()

registerBeans

protected void registerBeans(java.lang.Iterable<java.lang.Class<?>> classes)
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()
Starts the boot process. Discovers the beans and registers them with the getManager(). Also resolves the injection points.

Parameters:
webBeanDiscovery - The discovery implementation

getVersion

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

Returns:
The implementation version from the Bootstrap class package.


Copyright © 2008-2009. All Rights Reserved.