I have a Spring Web Flow AOP configuration as follows:Code:
lt;bean name=quot;loggingAspectquot; class=quot;com.app.aspect.LoggingAspectquot;/gt;
lt;aop:config proxy-target-class=quot;truequot;gt; lt;aop:aspect ref=quot;loggingAspectquot;gt; lt;aop:pointcut id=quot;actionPointcutquot; expression=quot;execution(* com.app.web.action.*.*(org..webflow.execution.RequestContext, ..))quot;/gt; lt;aop:before pointcut-ref=quot;actionPointcutquot; method=quot;logWebActionquot;/gt; lt;/aop:aspectgt;
lt;/aop:configgt;
Basically, I am logging every method in a class that extends AbstractAction that takes in a RequestContext as an argument.
The warning messages I am getting look like this:Code:
WARNING: Feb 16 08:29:41 Cglib2AopProxy.doValidateClass: Unable to proxy method [public final org..webflow.execution.Event org..webflow.action.AbstractAction.execute(org..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.
The actual logging is working perfectly.
I'm wondering if there is a way in my configuration to only proxy the base class methods.
Thoughts? |