Announcement Announcement Module
Collapse
No announcement yet.
<idref bean="*Manager" /> Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • <idref bean="*Manager" />

    How to tell spring that all beans named end with "Manager" will be included?

    <bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy .BeanNameAutoProxyCreator">
    <property name="interceptorNames">
    <value>transactionInterceptor</value>
    </property>
    <property name="beanNames">
    <list >
    <idref bean="*Manager" />

  • #2
    The reference manual has an example.
    http://www.springframework.org/docs/...#aop-autoproxy

    Comment


    • #3
      How to specify the *Manager only within my package com.abc.manager.* ? It is because the there has a lot of managers like transactionmanager,ChannelDecisionManager which i do not want to be included.

      Comment


      • #4
        Originally posted by jimmy6 View Post
        How to specify the *Manager only within my package com.abc.manager.* ? It is because the there has a lot of managers like transactionmanager,ChannelDecisionManager which i do not want to be included.
        Guess why the property is named beanNames This means it does not operate on the class names or packages but on the beanNames. You could make your bean names that verbose though by including the package in the bean name.

        Joerg

        Comment

        Working...
        X