Announcement Announcement Module
Collapse
No announcement yet.
Autoproxy Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Autoproxy

    Hi Folks,

    How to create customized auto-proxy object which needs to apply on "package" level ?.

    in spring only have BeanNameAutoProxyCreator (on bean name), DefaultAdvisorAutoProxyCreator (on regexp), i tried over DefaultAdvisorAutoProxyCreator (mentioned package level on regexp but it is working)

    is there any possibility through customized auto-proxy, please give me steps how to create?

    or any alternative please suggest me.

  • #2
    6.2.3.1. Supported Pointcut Designators:
    the execution of any method defined in the service package:

    Code:
    execution(* com.xyz.service.*.*(..))

    Comment


    • #3
      <bean class="org.springframework.aop.framework.autoproxy .DefaultAdvisorAutoProxyCreator"/>

      <bean id="myInterceptor" class="com.mycompany.PaymentsMethodInterceptor">
      </bean>


      <bean id="displayAdvisor"
      class="org.springframework.aop.support.DefaultPoin tcutAdvisor">
      <property name="advisor" ref="myInterceptor"/>
      <property name="pointcut" value="?"/>
      </bean>


      "?" which type of pointcut should i use for package level advise

      please help me

      Comment


      • #4
        Originally posted by pradeep.goli View Post
        ...
        "?" which type of pointcut should i use for package level advise

        please help me
        You can help yourself by reading the chapter referenced at my previous answer. It contains all necessary documentation and code snippets.

        Comment

        Working...
        X