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

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

public abstract class ForwardingBootstrap
extends java.lang.Object
implements Bootstrap

Implementation of Bootstrap which supports the decorator pattern

Author:
Pete Muir

Constructor Summary
ForwardingBootstrap()
           
 
Method Summary
 void boot()
          Starts the boot process.
protected abstract  Bootstrap delegate()
           
 boolean equals(java.lang.Object obj)
           
 WebBeansManager getManager()
          Get the manager used for this application.
 int hashCode()
           
 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 shutdown()
          Causes the container to clean up and shutdown
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.webbeans.bootstrap.api.Bootstrap
getServices, setEnvironment
 

Constructor Detail

ForwardingBootstrap

public ForwardingBootstrap()
Method Detail

delegate

protected abstract Bootstrap delegate()

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.

initialize

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

Specified by:
initialize in interface Bootstrap

setApplicationContext

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

Specified by:
setApplicationContext in interface Bootstrap
Parameters:
beanStore - the bean store 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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2011. All Rights Reserved.