if( null != accessors ) {
Iterator iter = accessors.iterator();
while( iter.hasNext() ) {
String str = (String) iter.next();
// 1.b Convert each entry in a reflected method object
Member member = HotSwapAspectInterfaceImpl.getMethodFromString( str );
// 1.c Get the method weaver for the method
MethodWeaver mw = HotSwapClassWeaver.getWeaver( member );
// 1.d Register (or unregister) 'target'
if( (FW_ACCESS_ENABLED & status) > 0 )
mw.addFieldAccessor( this );
else
mw.removeFieldAccessor( this );
//System.out.println("FieldWeaver field access changed: " + mw.getTarget().getName() );
}
}
// 2. Set the method weavers for all modifiers
// 2.a Get the registered entries
List modifiers = (List) HotSwapClassRegister.knownFieldModifiers.get( key );
if( null != modifiers ) {
Iterator iter = modifiers.iterator();
while( iter.hasNext() ) {
String str = (String) iter.next();
// 2.b Convert each entry in a reflected method object
Member member = HotSwapAspectInterfaceImpl.getMethodFromString( str );
// 2.c Get the method weaver for the method
MethodWeaver mw = HotSwapClassWeaver.getWeaver( member );
// 2.d Register (or unregister) 'target'
if( (FW_MODIFICATION_ENABLED & status) > 0 )
mw.addFieldModifier( this );