callWrappers.put(
methodIdx, new HashMap<String, CallWrapper>());
}
// create a wrapper
CallWrapper cWrapper = new CallWrapper();
Logger.info(
"installing call wrapper for method %s " +
"with index %s and pattern %s",
mGen.getName(), methodIdx,
joinpointPattern.pattern() );
// install the wrapper to the method
CallWrapperMethodPatcher mp =
new CallWrapperMethodPatcher(
methodIdx.intValue(), mGen, constPoolGen,
joinpointPattern.pattern(), targets );
// install the advice to the wrapper
cWrapper.install( (BeforeAfterAdvice)advice );
// create mapping: method->joinpointPattern->wrapper
callWrappers.get( methodIdx ).put(
joinpointPattern.pattern(), cWrapper );