<?xml version="1.0" encoding="UTF-8"?>

<!--
	Test that inner object for target means that we can use
	autowire without ambiguity from target and proxy.
-->

<objects xmlns="http://www.springframework.net" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="http://www.springframework.net http://www.springframework.net/xsd/spring-objects.xsd">

	<object id="nopInterceptor" type="Spring.Aop.Interceptor.NopInterceptor">
	</object>
	
	<object id="testObject"
		type="Spring.Aop.Framework.ProxyFactoryObject"
	> 
			<property name="target">
				<object type="Spring.Objects.TestObject">	
					<property name="name"><value>innerObjectTarget</value></property>
				</object>
			</property>
			
			<property name="interceptorNames">
				<value>nopInterceptor</value>
			</property>
	</object>
	
	<!--	
		Autowire would fail if distinct target and proxy:
		we expect just to have proxy
	-->
	<object id="autowireCheck" 
		type="Spring.Aop.Framework.ProxyFactoryObjectTests$DependsOnITestObject"
			autowire="constructor" />
	
</objects>		
	
	