|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectraccoon.core.types.AbsComponent
raccoon.core.types.AbsLoadable
raccoon.core.types.AbsConfigurableLoadable
public abstract class AbsConfigurableLoadable
A configurable component that has to be loaded before usage.
| Field Summary | |
|---|---|
protected IConfigurableManager |
mConfigurableManager
The configuration manager for this instance |
| Fields inherited from class raccoon.core.types.AbsLoadable |
|---|
mIsLoaded |
| Fields inherited from class raccoon.core.types.AbsComponent |
|---|
mIsInError |
| Constructor Summary | |
|---|---|
AbsConfigurableLoadable()
|
|
| Method Summary | |
|---|---|
void |
configureParameters()
Configures the various parameters for this component. |
boolean |
isStable(boolean pThrowOnError)
Checks if the component is correctly configured and loaded.. |
void |
load()
Loads or initializes the component. |
void |
setConfigurableManager(IConfigurableManager pManager)
Defines the configurable manager that is to be used. |
void |
setLogger(ILogger pLogger)
Assigns the logger to the component. |
| Methods inherited from class raccoon.core.types.AbsLoadable |
|---|
getLog, isInError, isInitialised, isRunning, unload |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected IConfigurableManager mConfigurableManager
| Constructor Detail |
|---|
public AbsConfigurableLoadable()
| Method Detail |
|---|
public void setConfigurableManager(IConfigurableManager pManager)
setConfigurableManager in interface IConfigurablepManager - the configuration manager.public void configureParameters()
IConfigurableManager provided during the invocation of setConfigurableManager(IConfigurableManager).
configureParameters in interface IConfigurable
public void setLogger(ILogger pLogger)
throws java.lang.IllegalStateException,
ResourceNotFoundException
setLogger in interface ILogablesetLogger in class AbsLoadablepLogger - the logging instance to use.
java.lang.IllegalStateException - if the component is already loaded, valid only if the component implements the ILoadable interface.
ResourceNotFoundException - if there is an internal configuration error related to Raccoon.
public boolean isStable(boolean pThrowOnError)
throws ServiceException
pThrowOnError - if the component is unstable should an exception be thrown?
true if the component is in a stable state.
ServiceException - if pThrowOnError is true and if the component is in an unstable
state
public void load()
throws java.lang.IllegalStateException,
LoadableException
load in interface ILoadableload in class AbsLoadableLoadableException - if the component couldn't load itself.
java.lang.IllegalStateException - if the component isn't in a state to load itself. for example it is already loaded.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||