| |
|
| java.lang.Object org.apache.turbine.services.BaseInitable
All known Subclasses: org.apache.turbine.services.BaseService,
BaseInitable | public class BaseInitable implements Initable(Code) | | This class provides a generic implementation of
Initable . This implementation, that other
Initables are welcome to extend, contains facilities
to maintain internal state.
author: Kevin Burton author: Rafal Krzewski version: $Id: BaseInitable.java 534527 2007-05-02 16:10:59Z tv $ |
Constructor Summary | |
public | BaseInitable() Default constructor of BaseInitable.
This constructor does nothing. |
initableBroker | protected InitableBroker initableBroker(Code) | | InitableBroker that instantiatd this class.
|
isInitialized | protected boolean isInitialized(Code) | | Initialization status of this class.
|
BaseInitable | public BaseInitable()(Code) | | Default constructor of BaseInitable.
This constructor does nothing. Your own constructurs should be
modest in allocating memory and other resources, leaving this
to the init() method.
|
getInit | public boolean getInit()(Code) | | Returns initialization status.
True if the initable is initialized. |
getInitableBroker | public InitableBroker getInitableBroker()(Code) | | Returns an InitableBroker reference.
The InitableBroker that instantiated this object. |
init | public void init(Object data) throws InitializationException(Code) | | Performs early initialization. Used in a manner similar to a ctor.
BaseInitable doesn't need early initialization, therefore it
ignores all objects passed to it and performs no initialization
activities.
Parameters: data - An Object to use for initialization activities. exception: InitializationException - Initialization of thisclass was not successful. |
init | public void init() throws InitializationException(Code) | | Performs late initializtion. Called when the Service is requested
for the first time (if not already completely initialized by the
early initializer).
Late intialization of a BaseInitable is alwas successful.
exception: InitializationException - Initialization of thisclass was not successful. |
setInit | protected void setInit(boolean value)(Code) | | Sets initailization status.
Parameters: value - The new initialization status. |
setInitableBroker | public void setInitableBroker(InitableBroker broker)(Code) | | Saves InitableBroker reference for later use.
Parameters: broker - The InitableBroker that instantiated this object. |
shutdown | public void shutdown()(Code) | | Returns an Initable to uninitialized state.
Calls setInit(false) to mark that we are no longer in initialized
state.
|
|
|
|