public interface IInitializable
This represents any object that is initializable by the PortalSystem
at startup. For instance, all IComponentProvider
implement IInitializable.
During startup, this inteface can perform the necessary initialization activities it requires. If an exception
occurrs, the implementor should decide whether the system can recover. If it can, an InitializationException
should be thrown with the paramater InitializationException.RECOVERABLE_ERROR
. This implies that even
though the object wasn't successfully initialized, the system as a whole can still continue to initialize. Otherwise,
an InitializationException
should be thrown with the paramater InitializationException.NON_RECOVERABLE_ERROR
.
Modifier and Type | Method and Description |
---|---|
void |
init(IComponentData data,
String phase)
This component should initialize now.
|
void |
shutdown()
This object is being uninitialized.
|
void init(IComponentData data, String phase) throws InitializationException
IComponentProvider
then it should initialize
all of its IComponent
s.phase
- the name of the current phasedata
- the IComponentDataInitializationException
InitializationException.RECOVERABLE_ERROR
,
InitializationException.NON_RECOVERABLE_ERROR
void shutdown()
shutdown()