Method Summary |
|
public static void | commit() Re-weave all modified f and activate them in the VM. |
static int | createNewFieldId(Field field) Returns an identifier for method and
stores the association, so that
HotSwapFieldWeaver.idToMethod(int) idToMethod() may be used to get the method using the id.
Note: only the id is unique, if createNewMethodId(Method)
is called more than one time with the same argument,
each call will create a new id and a new map entry.
Parameters: field - that will be associated with a new identifier. |
public String | debugString() |
public String | getKey() Returns a unique String identifier for the target field. |
public Field | getTarget() Returns the target of this FieldWeaver. |
public int | getTargetId() Returns the unique id of the target of this field. |
public static synchronized HotSwapFieldWeaver | getWeaver(Field target) Get a unique field weaver for `target'. |
public static Field | idToField(int fieldId) Returns the Method object associated to methodId
or null , if methodID is not a valid
id.
The ids must be created with
HotSwapFieldWeaver.createNewFieldId createNewFieldId() .
Parameters: fieldId - id for the Method that will be returned. |
public static void | resetAll() Reset all field weavers. |
public void | setFieldAccessEnabled(boolean flag) Enable field access join point. |
public void | setFieldModificationEnabled(boolean flag) Enable field modification join point. |
protected void | weave() Weave advice that are associated with the field in this weaver. |