/*if[AOP]*/
final net.sf.cglib.reflect.FastMethod fastMethod
= BytecodeGen.newFastClass(method.getDeclaringClass(), Visibility.forMember(method))
.getMethod(method);
return new MethodInvoker() {
public Object invoke(Object target, Object... parameters)
throws IllegalAccessException, InvocationTargetException {
return fastMethod.invoke(target, parameters);
}
};
/*end[AOP]*/
}
if (!Modifier.isPublic(modifiers)) {
method.setAccessible(true);
}
return new MethodInvoker() {
public Object invoke(Object target, Object... parameters)
throws IllegalAccessException, InvocationTargetException {
return method.invoke(target, parameters);
}
};