|
|||||
|
|||||
spring_component_config.xml
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="ssoo" class="tests.jfun.yan.benchmark.models.Soo" singleton="true"> <property name="bar"><ref bean="bar"/></property> </bean> <bean id="auto_soo" class="tests.jfun.yan.benchmark.models.Soo" singleton="false" autowire="byType"/> <bean id="foo" class="tests.jfun.yan.benchmark.models.FooImpl" singleton="false"> <constructor-arg><ref bean="bar"/></constructor-arg> </bean> <bean id="bar" class="tests.jfun.yan.benchmark.models.Bar" singleton="false"> </bean> <bean id="soo" class="tests.jfun.yan.benchmark.models.Soo" singleton="false"> <property name="bar"><ref bean="bar"/></property> </bean> <bean id="fooInterceptor" class="tests.jfun.yan.interceptor.FooInterceptor" singleton="true"> </bean> <bean id="statefulBarInterceptor" class="tests.jfun.yan.interceptor.ConcretBarInterceptorA" singleton="false"> </bean> <bean id="fooAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor"> <property name="advice"> <ref local="fooInterceptor"/> </property> <property name="patterns"> <list> <value>.*.noop</value> </list> </property> </bean> <bean id="fooProxy" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="proxyInterfaces"><value>tests.jfun.yan.benchmark.models.Foo</value></property> <property name="target"><ref local="foo"/></property> <property name="proxyTargetClass"><value>true</value></property> <property name="optimize"><value>true</value></property> <property name="frozen"><value>true</value></property> <property name="interceptorNames"> <list> <value>fooAdvisor</value> </list> </property> </bean> <bean id="sooProxy" class="org.springframework.aop.framework.ProxyFactoryBean"> <property name="singleton"><value>false</value></property> <property name="target"><ref local="soo"/></property> <property name="proxyTargetClass"><value>true</value></property> <property name="frozen"><value>true</value></property> <property name="interceptorNames"> <list> <value>fooAdvisor</value> </list> </property> </bean> </beans> |
|||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
|||||