info.magnolia.module.webapp
Class WebappVersionHandler

java.lang.Object
  extended by info.magnolia.module.webapp.WebappVersionHandler
All Implemented Interfaces:
ModuleVersionHandler

public class WebappVersionHandler
extends Object
implements ModuleVersionHandler

ModuleVersionHandler for the webapp module; bootstraps webapp content only if all workspaces are empty.

Version:
$Revision: $ ($Author: $)
Author:
gjoseph
See Also:
WebappBootstrap

Constructor Summary
WebappVersionHandler()
           
 
Method Summary
 Version getCurrentlyInstalled(InstallContext ctx)
          Gets the currently installed version number of this module.
 List<Delta> getDeltas(InstallContext ctx, 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebappVersionHandler

public WebappVersionHandler()
Method Detail

getCurrentlyInstalled

public Version getCurrentlyInstalled(InstallContext ctx)
Description copied from interface: ModuleVersionHandler
Gets the currently installed version number of this module.

Specified by:
getCurrentlyInstalled in interface ModuleVersionHandler

getDeltas

public List<Delta> getDeltas(InstallContext ctx,
                             Version from)
Description copied from interface: ModuleVersionHandler
Returns the deltas to be applied to update from the given Version from to the current one. If from is null, it means the module is being installed, and we should thus return the necessary deltas to install it. It is also responsible for updating the current version number of the module, wherever it is stored.

Specified by:
getDeltas in interface ModuleVersionHandler

getStartupDelta

public Delta getStartupDelta(InstallContext ctx)
Description copied from interface: ModuleVersionHandler
Returns a Delta that needs to be executed always before this module is started. These tasks will be silently applied at startup.

Specified by:
getStartupDelta in interface ModuleVersionHandler
Parameters:
ctx - InstallContext


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.