/ Published in: XML
URL: SpringAOP/SimpleAOP Spring 2.0
Expand |
Embed | Plain Text
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"> <bean id="performer-inj" class="com.jal.Performer" scope="prototype" /> <bean id="audience-inj" class="com.jal.Audience" scope="prototype" /> <bean id="audienceAdvice-inj" class="com.jal.AudienceAdvice" scope="prototype"> <property name="audience" ref="audience-inj" /> </bean> <bean id="performance-pointcut-inj" class="org.springframework.aop.support.JdkRegexpMethodPointcut" scope="prototype"> <property name="pattern" value=".*perform" /> </bean> <bean id="audienceAdvisor-inj-1" class="org.springframework.aop.support.DefaultPointcutAdvisor" scope="prototype"> <property name="pointcut" ref="performance-pointcut-inj" /> <property name="advice" ref="audienceAdvice-inj" /> </bean> <bean id="aa-inj" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator" scope="singleton"> <property name="advisorBeanNamePrefix" value="audienceAdvice-inj-2" /> </bean> </beans>
You need to login to post a comment.
