|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Initable
Classes that implement this interface need initialization before
they can work.
These classes rely also on an InitableBroker
that
ensures that there is only one instance of the class in the system,
and handles dependencies between Initables
.
Method Summary | |
---|---|
boolean |
getInit()
Returns initialization status of an Initable. |
void |
init()
Performs late initialization of an Initable. |
void |
init(Object data)
Performs early initailization of an Initable During the startup of the system, different objects may be passed to your class using this method. |
void |
setInitableBroker(InitableBroker broker)
Provides an Initable with a reference to the InitableBroker that instantiated this object, so that it can access other Initables. |
void |
shutdown()
Returns an Initable to an uninitialized state. |
Method Detail |
---|
void setInitableBroker(InitableBroker broker)
broker
- The InitableBroker that instantiated this object.void init(Object data) throws InitializationException
data
- An Object to use for initialization activities.
InitializationException
- if initilaization of this
class was not successful.void init() throws InitializationException
InitializationException
- if initialization of this
class was not successful.void shutdown()
Initable
to an uninitialized state.
This method must release all resources allocated by the
Initable
implementation, and resetting its internal state.
You may chose to implement this operation or not. If you support
this operation, getInit() should return false after successful
shutdown of the service.
boolean getInit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |