Method Summary |
|
public static void | commit() Re-Weaves all modified classes and activates them. |
protected byte[] | getClassDefinition() Returns the instrumented class file. |
protected static HotSwapAdvancedClassWeaver | getClassWeaver(Class target) Get a unique class weaver for 'target'. |
public Collection | getMethodWeavers() Returns a collection of all method weavers for
this class weaver. |
public Collection | getMethods() |
protected MethodWeaver | getNewMethodWeaver(Member target) Creates a new MethodWeaver and adds it to
this weaver. |
public Class | getTargetClass() Returns the class bound to this weaver. |
public static MethodWeaver | getWeaver(Member target) Get a unique method weaver for 'target'.
Parameters: target - method for which a weaver will be returned. |
public boolean | hasNoModifiedMethods() Indicates if this class weaver holds any
method weavers. |
public static Member | idToMethod(int methodId) Returns the Member object associated to methodId
or null , if methodID is not a valid
id.
Parameters: methodId - id for the Method that will be returned. |
public boolean | isModified() Indicates if not yet woven modifications are registered
for the target class. |
public boolean | isWoven() Indicates if the target class was woven (redefined). |
protected void | prepareClassDefinition() Prepares a class for weaving. |
public static void | redefineClass(Class cl, byte[] definition) Redefines an existing class, actually only method bodies may be redefined,
but the JVMDI and JVMTI functions requieres the whole class code. |
public static void | redefineClasses(Class[] cls, byte[][] definitions) Redefines existing classes, actually only method bodies may be redefined,
but the JVMDI and JVMTI functions requieres the whole class code. |
public static void | resetAll() Resets all woven classes. |
public static synchronized void | setAspectInterface(HotSwapAspectInterfaceImpl ai) Sets the aspect interface, must be called before any call to
HotSwapAdvancedClassWeaver.commit commit . |
protected void | setWoven() Sets some internal variables to indicate
that the target class was woven. |