|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object raccoon.core.types.AbsComponent raccoon.core.types.AbsLoadable raccoon.core.types.AbsConfigurableLoadable raccoon.core.types.AbsComponentManager
public abstract class AbsComponentManager
Convenience abstract class offered to the end user to handle sets of components or data caching.
Field Summary |
---|
Fields inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
mConfigurableManager |
Fields inherited from class raccoon.core.types.AbsLoadable |
---|
mIsLoaded |
Fields inherited from class raccoon.core.types.AbsComponent |
---|
mIsInError |
Constructor Summary | |
---|---|
AbsComponentManager()
Default constructor, required by all components for dynamic instanciation. |
Method Summary | |
---|---|
void |
clear()
Clears all the current errors attached to this component. |
boolean |
isLoaded(java.lang.String pComponentName)
Checks if the specified component is alreay loaded. |
boolean |
isLogable()
The component manager doesn't log information |
void |
load()
Invoked by the service manager to start this component once it has been configured. |
protected abstract IBaseComponent |
loadComponent(java.lang.String pComponentName)
Generates a new instance of ComponentBase , must be implemented
by inheriting classes. |
IBaseComponent |
lookup(java.lang.String pComponentName)
Searches for a specific component and initilizes it if necessary. |
void |
unload()
Invoked by the service manager to stop this component. |
Methods inherited from class raccoon.core.types.AbsConfigurableLoadable |
---|
configureParameters, isStable, setConfigurableManager, setLogger |
Methods inherited from class raccoon.core.types.AbsLoadable |
---|
getLog, isInError, isInitialised, isRunning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbsComponentManager()
Method Detail |
---|
public boolean isLogable()
false
.public void clear()
public void load() throws LoadableException
false
and then set to true
once all the init code has been performed.
load
in interface ILoadable
load
in class AbsConfigurableLoadable
LoadableException
- if this component isn't initialisable or is already running.public void unload() throws LoadableException
true
and then set to false
once all the init code has been performed.
unload
in interface ILoadable
unload
in class AbsLoadable
LoadableException
- if the composant isn't running or if it isn't an initialisable component.public IBaseComponent lookup(java.lang.String pComponentName) throws RaccoonException
pComponentName
- the logical name of the component.
IBaseComponent
instance up and running.
RaccoonException
- if an error occurred while trying to load the component.public boolean isLoaded(java.lang.String pComponentName) throws RaccoonException
pComponentName
- the logical name of the component.
true
if the component is already loaded.
RaccoonException
- if this instance isn't already loaded.protected abstract IBaseComponent loadComponent(java.lang.String pComponentName) throws RaccoonException
ComponentBase
, must be implemented
by inheriting classes.
pComponentName
- the desired component instance.
RaccoonException
- if the instanciation failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |