public static final class LightModuleDefinitionReader.LightModuleVersionHandler extends Object implements ModuleVersionHandler
ModuleVersionHandler
that doesn't do a thing, not even register a module version in JCR. This is what we
want because light modules are volatile and shouldn't clutter the repository.Constructor and Description |
---|
LightModuleVersionHandler() |
Modifier and Type | Method and Description |
---|---|
Version |
getCurrentlyInstalled(InstallContext ctx)
Gets the currently installed version number of this module.
|
List<Delta> |
getDeltas(InstallContext installContext,
Version from)
Returns the deltas to be applied to update from the given Version from
to the current one.
|
Delta |
getStartupDelta(InstallContext ctx)
Returns a
Delta that needs to be executed always before this module is started. |
public Version getCurrentlyInstalled(InstallContext ctx)
ModuleVersionHandler
getCurrentlyInstalled
in interface ModuleVersionHandler
public List<Delta> getDeltas(InstallContext installContext, Version from)
ModuleVersionHandler
getDeltas
in interface ModuleVersionHandler
public Delta getStartupDelta(InstallContext ctx)
ModuleVersionHandler
Delta
that needs to be executed always before this module is started. These tasks will
be silently applied at startup.getStartupDelta
in interface ModuleVersionHandler
ctx
- InstallContextCopyright © 2003–2020 Magnolia International Ltd.. All rights reserved.