|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModuleLifecycleContext
This interface currently provides a hook allowing modules to register ObserverManager instances, which can observer other modules' nodes. In the future, it might provide other callback methods relevant to the lifecycle management of a module.
Field Summary | |
---|---|
static int |
PHASE_MODULE_RESTART
A module is restarted. |
static int |
PHASE_SYSTEM_SHUTDOWN
The system is shutting down. |
static int |
PHASE_SYSTEM_STARTUP
System is starting up. |
Method Summary | |
---|---|
ModuleDefinition |
getCurrentModuleDefinition()
Gets the current module definition. |
int |
getPhase()
Returns the phase the lifecycle is in. |
void |
registerModuleObservingComponent(java.lang.String nodeName,
ObservedManager component)
Registers a component which will observe other modules' config node with the given nodeName. |
Field Detail |
---|
static final int PHASE_SYSTEM_STARTUP
static final int PHASE_MODULE_RESTART
static final int PHASE_SYSTEM_SHUTDOWN
Method Detail |
---|
ModuleDefinition getCurrentModuleDefinition()
int getPhase()
void registerModuleObservingComponent(java.lang.String nodeName, ObservedManager component)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |