Announcement Announcement Module
Collapse
No announcement yet.
Applying an advice on a recursive method Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Applying an advice on a recursive method

    I have the following problem: I want to have an advice that gets applied every time that method x() is called. Method x() is recursive.
    The advice is applied only once, for the first call of the method.

    This is my advisor:

    <bean id="handlerRunnerExecutionAdvisor" class="org.springframework.aop.support.RegexpMetho dPointcutAdvisor">
    <property name="advice">
    <ref local="threadRunnerExecutionInterceptor"/>
    </property>
    <property name="pattern">
    <value>.*x.*</value>
    </property>
    </bean>

    Thank you

  • #2
    Please take a look at AOP, Proxies, and method calling in same instance and Pre-Interceptor in TransactionProxyFactory.
    HTH

    Comment


    • #3
      Thanks

      Comment

      Working...
      X