<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

<beans>

	<bean id="constructorOverrides" 
		class="org.springframework.beans.factory.xml.ConstructorInjectedOverrides"
		autowire="autodetect">
		
		<!--
			We combine a setter method with constructor
			autowiring
		-->
		<property name="setterString"><value>from property element</value></property>
		
		<lookup-method name="createFactoryMethods" bean="factoryMethods" />		
		
	</bean>
	
	
	<bean id="jenny" class="org.springframework.beans.TestBean"
		scope="singleton">
		<property name="name"><value>Jenny</value></property>
		<property name="age"><value>30</value></property>
	</bean>
	
	<bean id="factoryMethods" 
		class="org.springframework.beans.factory.xml.FactoryMethods"
		factory-method="newInstance"
		scope="prototype">
		<constructor-arg index="0"><ref local="jenny"/></constructor-arg>
	</bean>

</beans>
