我有一个要求是从切入点实现中获取截获的方法的参数值,如下所示。
截取方法:
public void execute(Object mapValues)throws Throwable{
....
}
并在方面实施
@AfterThrowing(pointcut = "execution(*com.AdhocJob.execute(..))", throwing="ex")
public void afterThrowing(JoinPoint pjp,Throwable ex) {
MethodSignature signature = (MethodSignature) pjp.getSignature();
....
}
是否可以在 afterThrowing 方法中获取“mapValues”参数的实例。有人可以说明一下吗。