Announcement Announcement Module
Collapse
No announcement yet.
Proxying Only Base Class Methods Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Proxying Only Base Class Methods

    I have a Spring Web Flow AOP configuration as follows:

    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>
    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.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.
    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?
Working...
X