@ -3,9 +3,6 @@
@@ -3,9 +3,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<!--
Not yet in use: illustration of possible approach
-->
<bean id= "overrideOneMethod" class= "org.springframework.beans.factory.xml.OverrideOneMethod" >
<lookup-method name= "getPrototypeDependency" bean= "jenny" />
@ -27,48 +24,34 @@
@@ -27,48 +24,34 @@
<lookup-method name= "protectedOverrideSingleton" bean= "david" />
<!--
This method is not overloaded, so we don't need to specify any arg types
-->
<!-- This method is not overloaded, so we don't need to specify any arg types -->
<replaced-method name= "doSomething" replacer= "doSomethingReplacer" />
</bean>
<bean id= "replaceVoidMethod" parent= "someParent"
class="org.springframework.beans.factory.xml.OverrideOneMethodSubclass">
</bean>
<bean id= "replaceVoidMethod" parent= "someParent" class= "org.springframework.beans.factory.xml.OverrideOneMethodSubclass" />
<bean id= "replaceEchoMethod" class= "org.springframework.beans.factory.xml.EchoService" >
<!--
This method is not overloaded, so we don't need to specify any arg types
-->
<!-- This method is not overloaded, so we don't need to specify any arg types -->
<replaced-method name= "echo" replacer= "reverseArrayReplacer" />
</bean>
<bean id= "reverseReplacer"
class="org.springframework.beans.factory.xml.ReverseMethodReplacer"/>
<bean id= "reverseArrayReplacer"
class="org.springframework.beans.factory.xml.ReverseArrayMethodReplacer"/>
<bean id= "reverseReplacer" class= "org.springframework.beans.factory.xml.ReverseMethodReplacer" />
<bean id= "fixedReplacer"
class="org.springframework.beans.factory.xml.FixedMethodReplacer"/>
<bean id= "reverseArrayReplacer" class= "org.springframework.beans.factory.xml.ReverseArrayMethodReplacer" />
<bean id= "doSomethingReplacer"
class="org.springframework.beans.factory.xml.XmlBeanFactoryTests$DoSomethingReplacer"/>
<bean id= "fixedReplacer" class= "org.springframework.beans.factory.xml.FixedMethodReplacer" />
<bean id= "serializableReplacer"
class="org.springframework.beans.factory.xml.SerializableMethodReplacerCandidate">
<bean id= "doSomethingReplacer" class= "org.springframework.beans.factory.xml.XmlBeanFactoryTests$DoSomethingReplacer" />
<bean id= "serializableReplacer" class= "org.springframework.beans.factory.xml.SerializableMethodReplacerCandidate" >
<!-- Arbitrary method replacer -->
<replaced-method name= "replaceMe" replacer= "reverseReplacer" >
<arg-type > String</arg-type>
</replaced-method>
</bean>
<bean id= "jenny" class= "org.springframework.beans.testfixture.beans.TestBean"
scope="prototype">
<bean id= "jenny" class= "org.springframework.beans.testfixture.beans.TestBean" scope= "prototype" >
<property name= "name" > <value > Jenny</value> </property>
<property name= "age" > <value > 30</value> </property>
<property name= "spouse" >
@ -77,8 +60,7 @@
@@ -77,8 +60,7 @@
</property>
</bean>
<bean id= "david" class= "org.springframework.beans.testfixture.beans.TestBean"
scope="singleton">
<bean id= "david" class= "org.springframework.beans.testfixture.beans.TestBean" scope= "singleton" >
<description >
Simple bean, without any collections.
</description>