public abstract class BaseSubsystem extends java.lang.Object implements ISubsystem
Constructor and Description |
---|
BaseSubsystem() |
Modifier and Type | Method and Description |
---|---|
IConfigStore |
getConfigStore()
Retrieves the configuration store.
|
java.lang.String |
getId()
Retrieves the subsystem identifier.
|
void |
init(ISubsystem owner,
IConfigStore config)
Initializes this subsystem.
|
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setId(java.lang.String id)
Sets the identifier of this subsystem.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shutdown, startup
public void init(ISubsystem owner, IConfigStore config) throws EBaseException
init
in interface ISubsystem
owner
- owner subsystemconfig
- configuration storeEBaseException
- failed to initializepublic IConfigStore getConfigStore()
getConfigStore
in interface ISubsystem
public void setId(java.lang.String id) throws EBaseException
setId
in interface ISubsystem
id
- subsystem identifierEBaseException
- failed to set idpublic java.lang.String getId()
getId
in interface ISubsystem
public boolean isEnabled()
public void setEnabled(boolean enabled)