public class ModuleLifecycleContextImpl extends Object implements ModuleLifecycleContext
PHASE_MODULE_RESTART, PHASE_SYSTEM_SHUTDOWN, PHASE_SYSTEM_STARTUP
Constructor and Description |
---|
ModuleLifecycleContextImpl() |
Modifier and Type | Method and Description |
---|---|
ModuleDefinition |
getCurrentModuleDefinition()
Gets the current module definition.
|
int |
getPhase()
Returns the phase the lifecycle is in.
|
void |
registerModuleObservingComponent(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(Collection<Content> moduleNodes) |
public void registerModuleObservingComponent(String nodeName, ObservedManager component)
ModuleLifecycleContext
registerModuleObservingComponent
in interface ModuleLifecycleContext
public void start(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)
Copyright © 2003–2015 Magnolia International Ltd.. All rights reserved.