Streamline XML namespace support towards unversioned schemas
This commit also removes support code for outdated options which were only available in older schema versions. Issue: SPR-13499
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<bean id="nopInterceptor" class="org.springframework.tests.aop.interceptor.SerializableNopInterceptor"/>
|
||||
|
||||
<bean id="settersAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
|
||||
<property name="advice"><ref local="nopInterceptor"/></property>
|
||||
<property name="advice"><ref bean="nopInterceptor"/></property>
|
||||
<property name="pattern">
|
||||
<value>
|
||||
.*set.*
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<bean id="settersAdvised" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="proxyInterfaces"><value>org.springframework.tests.sample.beans.ITestBean</value></property>
|
||||
<property name="target"><ref local="test"/></property>
|
||||
<property name="target"><ref bean="test"/></property>
|
||||
<property name="interceptorNames"><value>settersAdvisor</value></property>
|
||||
</bean>
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
|
||||
<!-- Illustrates use of multiple patterns -->
|
||||
<bean id="settersAndAbsquatulateAdvisor" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
|
||||
<property name="advice"><ref local="nopInterceptor"/></property>
|
||||
<property name="advice"><ref bean="nopInterceptor"/></property>
|
||||
<property name="patterns">
|
||||
<list>
|
||||
<value>.*get.*</value>
|
||||
@@ -51,7 +51,7 @@
|
||||
<property name="proxyInterfaces"><value>org.springframework.tests.sample.beans.ITestBean</value></property>
|
||||
<!-- Force CGLIB so we can cast to TestBean -->
|
||||
<property name="proxyTargetClass"><value>true</value></property>
|
||||
<property name="target"><ref local="test"/></property>
|
||||
<property name="target"><ref bean="test"/></property>
|
||||
<property name="interceptorNames"><value>settersAndAbsquatulateAdvisor</value></property>
|
||||
</bean>
|
||||
|
||||
|
||||
@@ -16,11 +16,11 @@
|
||||
Hot swappable target source. Note the use of Type 3 IoC.
|
||||
-->
|
||||
<bean id="swapper" class="org.springframework.aop.target.HotSwappableTargetSource">
|
||||
<constructor-arg><ref local="target1"/></constructor-arg>
|
||||
<constructor-arg><ref bean="target1"/></constructor-arg>
|
||||
</bean>
|
||||
|
||||
<bean id="swappable" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="targetSource"><ref local="swapper"/></property>
|
||||
<property name="targetSource"><ref bean="swapper"/></property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<bean id="proxy" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="targetSource">
|
||||
<bean class="org.springframework.aop.target.LazyInitTargetSourceTests$CustomLazyInitTargetSource">
|
||||
<property name="targetBeanName"><idref local="target"/></property>
|
||||
<property name="targetBeanName"><idref bean="target"/></property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<bean id="proxy" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="targetSource">
|
||||
<bean class="org.springframework.aop.target.LazyInitTargetSource">
|
||||
<property name="targetBeanName"><idref local="target"/></property>
|
||||
<property name="targetBeanName"><idref bean="target"/></property>
|
||||
</bean>
|
||||
</property>
|
||||
</bean>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
This will create a bean that creates a new target on each invocation.
|
||||
-->
|
||||
<bean id="prototype" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="targetSource"><ref local="prototypeTargetSource"/></property>
|
||||
<property name="targetSource"><ref bean="prototypeTargetSource"/></property>
|
||||
<property name="interceptorNames"><value>debugInterceptor</value></property>
|
||||
</bean>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
We want to invoke the getStatsMixin method on our ThreadLocal invoker
|
||||
-->
|
||||
<bean id="statsAdvisor" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
|
||||
<property name="targetObject"><ref local="threadLocalTs" /></property>
|
||||
<property name="targetObject"><ref bean="threadLocalTs" /></property>
|
||||
<property name="targetMethod"><value>getStatsMixin</value></property>
|
||||
</bean>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
-->
|
||||
<bean id="apartment" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="interceptorNames"><value>debugInterceptor,statsAdvisor</value></property>
|
||||
<property name="targetSource"><ref local="threadLocalTs"/></property>
|
||||
<property name="targetSource"><ref bean="threadLocalTs"/></property>
|
||||
<!-- Necessary as have a mixin and want to avoid losing the class,
|
||||
because there's no target interface -->
|
||||
<property name="proxyTargetClass"><value>true</value></property>
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
<bean id="test" class="org.springframework.tests.sample.beans.TestBean" scope="prototype">
|
||||
<property name="name"><value>Rod</value></property>
|
||||
<property name="spouse"><ref local="wife"/></property>
|
||||
<property name="spouse"><ref bean="wife"/></property>
|
||||
</bean>
|
||||
|
||||
<bean id="wife" class="org.springframework.tests.sample.beans.TestBean">
|
||||
@@ -48,7 +48,7 @@
|
||||
</bean>
|
||||
|
||||
<bean id="threadLocal2" class="org.springframework.aop.framework.ProxyFactoryBean">
|
||||
<property name="targetSource"><ref local="threadLocalTs2"/></property>
|
||||
<property name="targetSource"><ref bean="threadLocalTs2"/></property>
|
||||
</bean>
|
||||
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user