I have a Spring Web Flow AOP configuration as follows:
Basically, I am logging every method in a class that extends AbstractAction that takes in a RequestContext as an argument.Code:<bean name="loggingAspect" class="com.app.aspect.LoggingAspect"/> <aop:config proxy-target-class="true"> <aop:aspect ref="loggingAspect"> <aop:pointcut id="actionPointcut" expression="execution(* com.app.web.action.*.*(org.springframework.webflow.execution.RequestContext, ..))"/> <aop:before pointcut-ref="actionPointcut" method="logWebAction"/> </aop:aspect> </aop:config>
The warning messages I am getting look like this:
The actual logging is working perfectly.Code:WARNING: Feb 16 08:29:41 Cglib2AopProxy.doValidateClass: Unable to proxy method [public final org.springframework.webflow.execution.Event org.springframework.webflow.action.AbstractAction.execute(org.springframework.webflow.execution.RequestContext) throws java.lang.Exception] because it is final: All calls to this method via a proxy will be routed directly to the proxy.
I'm wondering if there is a way in my configuration to only proxy the base class methods.
Thoughts?


Reply With Quote
