1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
   |  
<!-- Advisor configuration -->
<bean id="actionAdvice" class="com.xxx.yyy.server.web.aspects.ActionAdvice">
		<property name="actionManager" ref="actionManager"/>
		<property name="userManager" ref="userManager"/>
	</bean>
 
	<bean id="actionPointcut" class="org.springframework.aop.support.NameMatchMethodPointcut">
		<property name="mappedNames" value="handleRequest,processRequest" />
	</bean>
 
	<bean id="actionAdvisor" class="org.springframework.aop.support.DefaultPointcutAdvisor">
		<property name="advice" ref="actionAdvice"/>
		<property name="pointcut" ref="actionPointcut"/>
	</bean>
 
<bean id="container" class="org.springframework.aop.framework.ProxyFactoryBean">
		<property name="target" ref="containerTarget"/>
		<property name="proxyTargetClass" value="true"/>
		<property name="interceptorNames">
			<list>
				<value>actionAdvice</value>
			</list>
		</property>
	</bean>
 
	<bean id="containerTarget" class="com.xxx.yyy.server.container.Container">
		<property name="blacklistManager" ref="blacklistManager" />
		<property name="actionManager" ref="actionManager"/>
		<property name="userManager" ref="userManager"/>
	</bean>  | 
Partager