Access to MethodInvocation in a aAround("some.class")
I am using Spring 2.5.1, and have started using annotation based AOP. I hacve a cache implemented by using an around advise, and the method signature is:
Code:
aAround("some.class")
public Object cacheIntercept(ProceedingJoinPoint pjp) throws Throwable {...}
I need access to the advised method, and sadly the pjp doesn't gie me access to this. Is there a way to have the MethodInvocation added to my cacheIntercept method, so I can access the underlying java.lang.reflect.Method?
e.g.
Code:
aAround("some.class")
public Object cacheIntercept(ProceedingJoinPoint pjp, MethodInvocation mi) throws Throwable {...}
Everything works as it is now, but I have to iterate over the Object[] args to recreate the classes of the parameters to the advised method. If one of the args is null, i have a problem...
Hope my question makes sense to someone, as I am not too excerienced in the AOP parts of spring.
(Note: replace aAraund with the annotation, as I haven't reached 15 posts yet, and some spam mechanism prevnts any circeled a letters in my msg)
Regards,
Olve