|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ModuleVersionHandler
This class provides Delta's to be applied to install/update/uninstall modules. A module that needs to handle its own install/updates should provide an implementation of this interface.
for a convenient super class.
Method Summary | |
---|---|
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 installContext)
Deprecated. It seems irrelevant to have startup tasks in a VersionHandler. These should probably be moved to ModuleLifecycle. |
Method Detail |
---|
Version getCurrentlyInstalled(InstallContext ctx)
List<Delta> getDeltas(InstallContext installContext, Version from)
Delta getStartupDelta(InstallContext installContext)
Delta
that needs to be executed always before this module is started. These tasks will
be silently applied at startup.
installContext
- InstallContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |