|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.ModuleLifecycleContextImpl
public class ModuleLifecycleContextImpl
This default implementation of ModuleLifecycleContext allows the ModuleManager to set the current "phase" of installation; other ModuleLifecycleContext clients have read-only access to the phase.
Field Summary |
---|
Fields inherited from interface info.magnolia.module.ModuleLifecycleContext |
---|
PHASE_MODULE_RESTART, PHASE_SYSTEM_SHUTDOWN, PHASE_SYSTEM_STARTUP |
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. |
void |
setCurrentModuleDefinition(ModuleDefinition currentModuleDefinition)
|
void |
setPhase(int phase)
|
void |
start(java.util.Collection<Content> moduleNodes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void registerModuleObservingComponent(java.lang.String nodeName, ObservedManager component)
ModuleLifecycleContext
registerModuleObservingComponent
in interface ModuleLifecycleContext
public void start(java.util.Collection<Content> moduleNodes)
moduleNodes
- a Collection<Content> of module nodes.public ModuleDefinition getCurrentModuleDefinition()
ModuleLifecycleContext
getCurrentModuleDefinition
in interface ModuleLifecycleContext
public void setCurrentModuleDefinition(ModuleDefinition currentModuleDefinition)
public int getPhase()
ModuleLifecycleContext
getPhase
in interface ModuleLifecycleContext
public void setPhase(int phase)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |