net.datacrow.core.modules.upgrade
Class ModuleUpgrade

java.lang.Object
  extended by net.datacrow.core.modules.xml.XmlObject
      extended by net.datacrow.core.modules.upgrade.ModuleUpgrade

public class ModuleUpgrade
extends XmlObject

Upgrades the actual module jar file. Fields can be added, removed or altered.

Author:
Robert Jan van der Waals

Constructor Summary
ModuleUpgrade()
           
 
Method Summary
 void upgrade()
           
 byte[] upgrade(byte[] xml)
          Upgrades the module based on a XML upgrade definition.
 
Methods inherited from class net.datacrow.core.modules.xml.XmlObject
getClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleUpgrade

public ModuleUpgrade()
Method Detail

upgrade

public byte[] upgrade(byte[] xml)
               throws ModuleUpgradeException
Upgrades the module based on a XML upgrade definition.

Parameters:
xml -
Returns:
Throws:
ModuleUpgradeException

upgrade

public void upgrade()
             throws ModuleUpgradeException
Throws:
ModuleUpgradeException