Hi,
I have some packaged code that takes a org.aopalliance.intercept.MethodInvocation as an argument to a method that I want to invoke from an AspectJ joinpoint. Is there any way that I can use AspectJ and convert a org.aspectj.lang.ProceedingJoinPoint to a org.aopalliance.intercept.MethodInvocation.
public Object checkCache(ProceedingJoinPoint joinPoint) throws Throwable {
// want to call method below.....
}
public final Object invoke(MethodInvocation mi) throws Throwable {
}
Spring Wiring to invoke aspect:
<aop:config>
<aop:aspect ref="methodCacheAdvice">
<aopointcut id="theExecutionOfSomeMethod"
expression="execution(public * *(..))"/>
<aop:around pointcut-ref="theExecutionOfSomeMethod" method="checkCache"/>
</aop:aspect>
</aop:config>
Any help / direction appreciated.


ointcut id="theExecutionOfSomeMethod"
Reply With Quote