|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.ModuleManagerImpl
public class ModuleManagerImpl
TODO where do we setup ModuleRegistry ? TODO : factor out into simpler units.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface info.magnolia.module.ModuleManager |
---|
ModuleManager.Factory, ModuleManager.ModuleAndDeltas, ModuleManager.ModuleManagementState |
Constructor Summary | |
---|---|
|
ModuleManagerImpl()
|
protected |
ModuleManagerImpl(InstallContextImpl installContext,
ModuleDefinitionReader moduleDefinitionReader)
|
protected |
ModuleManagerImpl(InstallContextImpl installContext,
ModuleDefinitionReader moduleDefinitionReader,
ModuleRegistry moduleRegistry,
DependencyChecker dependencyChecker)
|
Method Summary | |
---|---|
protected void |
applyDeltas(ModuleDefinition moduleDef,
java.util.List<Delta> deltas,
InstallContextImpl ctx)
Applies to given deltas for the given module. |
void |
checkForInstallOrUpdates()
In addition to checking for install or updates, this method also loads repositories when there are no pending install or update tasks. |
protected void |
executeStartupTasks()
Process startup tasks. |
InstallContext |
getInstallContext()
|
ModuleManager.ModuleManagementState |
getStatus()
Returns the status as discovered by checkForInstallOrUpdates(). |
ModuleManagerUI |
getUI()
|
protected void |
installOrUpdateModule(ModuleManager.ModuleAndDeltas moduleAndDeltas,
InstallContextImpl ctx)
|
java.util.List<ModuleDefinition> |
loadDefinitions()
Loads modules definitions, validates dependencies and sorts modules by dependencies. |
protected ModuleVersionHandler |
newVersionHandler(ModuleDefinition module)
|
void |
performInstallOrUpdate()
|
protected void |
populateModuleInstance(java.lang.Object moduleInstance,
java.util.Map<java.lang.String,java.lang.Object> moduleProperties)
|
protected void |
startModule(java.lang.Object moduleInstance,
ModuleDefinition moduleDefinition,
ModuleLifecycleContextImpl lifecycleContext)
|
void |
startModules()
|
protected void |
stopModule(java.lang.Object moduleInstance,
ModuleDefinition moduleDefinition,
ModuleLifecycleContextImpl lifecycleContext)
|
void |
stopModules()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ModuleManagerImpl()
protected ModuleManagerImpl(InstallContextImpl installContext, ModuleDefinitionReader moduleDefinitionReader)
protected ModuleManagerImpl(InstallContextImpl installContext, ModuleDefinitionReader moduleDefinitionReader, ModuleRegistry moduleRegistry, DependencyChecker dependencyChecker)
Method Detail |
---|
public java.util.List<ModuleDefinition> loadDefinitions() throws ModuleManagementException
ModuleManager
loadDefinitions
in interface ModuleManager
ModuleManagementException
public void checkForInstallOrUpdates()
checkForInstallOrUpdates
in interface ModuleManager
ModuleManager.checkForInstallOrUpdates()
public ModuleManager.ModuleManagementState getStatus()
ModuleManager
getStatus
in interface ModuleManager
public ModuleManagerUI getUI()
getUI
in interface ModuleManager
protected ModuleVersionHandler newVersionHandler(ModuleDefinition module)
public void performInstallOrUpdate()
performInstallOrUpdate
in interface ModuleManager
public InstallContext getInstallContext()
getInstallContext
in interface ModuleManager
public void startModules()
startModules
in interface ModuleManager
protected void executeStartupTasks()
ModuleDefinition.getStartupTasks()
are always executed and
do not require manual intervention.
protected void startModule(java.lang.Object moduleInstance, ModuleDefinition moduleDefinition, ModuleLifecycleContextImpl lifecycleContext)
protected void stopModule(java.lang.Object moduleInstance, ModuleDefinition moduleDefinition, ModuleLifecycleContextImpl lifecycleContext)
protected void populateModuleInstance(java.lang.Object moduleInstance, java.util.Map<java.lang.String,java.lang.Object> moduleProperties)
public void stopModules()
stopModules
in interface ModuleManager
protected void installOrUpdateModule(ModuleManager.ModuleAndDeltas moduleAndDeltas, InstallContextImpl ctx)
protected void applyDeltas(ModuleDefinition moduleDef, java.util.List<Delta> deltas, InstallContextImpl ctx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |