Announcement Announcement Module
Collapse
No announcement yet.
3 types of advice in 1 class :error Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 3 types of advice in 1 class :error

    I have 1 class LoggingInterceptor which implements 3 types of advice(before,after,and throw), it seems like
    Code:
              <bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator">
    		<property name="beanNames">
    			<value>test</value>
    		</property>
    		<property name="interceptorNames">
    			<list>
    				<value>logging</value>
    			   
    			</list>
    		</property>
    	</bean>
                 <bean id="logging" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
    		<property name="advice">
    			<ref local="loggingInterceptor"/>
    		</property>
    		<property name="pattern">
    			<value>.*load.*</value>
    		</property>
    	</bean>
                 <bean id="loggingInterceptor" class="LoggingInterceptor"></bean>
    then it turns out that only before Advice can be invoked,the other two dont. Because I have 3
    Can anyone please tell me why?
Working...
X