<?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="proxy1" class="org.springframework.aop.framework.ProxyFactoryBean">
		<property name="proxyInterfaces" value="java.io.Serializable"/>
		<property name="targetName" value="target1"/>
	</bean>

	<bean id="target1" class="org.springframework.beans.factory.xml.ConstructorDependenciesBean"
		autowire="constructor"/>

	<bean id="toBeFoundByType" class="org.springframework.beans.TestBean"/>

	<bean id="proxy2" class="org.springframework.aop.framework.ProxyFactoryBean">
		<property name="proxyInterfaces" value="org.springframework.beans.ITestBean"/>
		<property name="targetName" value="target2"/>
	</bean>
	
	<bean id="target2" class="org.springframework.beans.factory.xml.DependenciesBean">
		<property name="spouse">
			<bean class="org.springframework.beans.TestBean">
				<property name="someSet">
					<set>
						<ref local="proxy1"/>
					</set>
				</property>
			</bean>
		</property>
	</bean>

</beans>
