classUtils.javassist.sample.evolve
Class VersionManager

java.lang.Object
  extended by classUtils.javassist.sample.evolve.VersionManager

public class VersionManager
extends java.lang.Object

Runtime system for class evolution


Field Summary
static java.lang.String latestVersionField
           
 
Constructor Summary
VersionManager()
           
 
Method Summary
static java.lang.Class initialVersion(java.lang.String[] params)
           
static java.lang.Object make(java.lang.Class clazz, java.lang.Object[] args)
          make() performs the object creation of the updatable classes.
static void update(java.lang.String qualifiedClassname)
          For updating the definition of class my.X, say: VersionManager.update("my.X");
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

latestVersionField

public static final java.lang.String latestVersionField
See Also:
Constant Field Values
Constructor Detail

VersionManager

public VersionManager()
Method Detail

update

public static void update(java.lang.String qualifiedClassname)
                   throws CannotUpdateException
For updating the definition of class my.X, say: VersionManager.update("my.X");

Throws:
CannotUpdateException

initialVersion

public static java.lang.Class initialVersion(java.lang.String[] params)

make

public static java.lang.Object make(java.lang.Class clazz,
                                    java.lang.Object[] args)
make() performs the object creation of the updatable classes. The expression "new " is replaced with a call to this method.