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)
Deprecated.
since 5.5. Use
ModuleConfigurationObservingManager instead. |
void |
setCurrentModuleDefinition(ModuleDefinition currentModuleDefinition) |
void |
setPhase(int phase) |
void |
start(Collection<Content> moduleNodes)
Deprecated.
since 5.5. Use
ModuleConfigurationObservingManager instead. |
@Deprecated public void registerModuleObservingComponent(String nodeName, ObservedManager component)
ModuleConfigurationObservingManager
instead.ModuleLifecycleContext
registerModuleObservingComponent
in interface ModuleLifecycleContext
@Deprecated public void start(Collection<Content> moduleNodes)
ModuleConfigurationObservingManager
instead.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–2018 Magnolia International Ltd.. All rights reserved.