<?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="autoproxy" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator">
		<property name="customTargetSourceCreators">
			<list>
				<bean class="org.springframework.aop.framework.autoproxy.SelectivePrototypeTargetSourceCreator"/>
				<bean class="org.springframework.aop.framework.autoproxy.target.LazyInitTargetSourceCreator"/>
			</list>
		</property>
	</bean>
	
	<bean id="test" scope="prototype" class="org.springframework.beans.TestBean">
		<property name="name"><value>Rod</value></property>
		<property name="spouse"><ref local="wife"/></property>
	</bean>
	
	<bean id="prototypeTest" class="org.springframework.aop.framework.autoproxy.CountingTestBean">
		<property name="name"><value>Rod</value></property>
		<property name="spouse"><ref local="wife"/></property>
	</bean>
	
	<bean id="lazyInitTest" class="org.springframework.aop.framework.autoproxy.CountingTestBean" lazy-init="true">
		<property name="name"><value>Rod</value></property>
		<property name="spouse"><ref local="wife"/></property>
	</bean>

	<bean id="wife" class="org.springframework.beans.TestBean">
		<property name="name"><value>Kerry</value></property>
	</bean>

</beans>		
