<?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">

<!--
	Tests for misconfiguring the proxy factory bean using a target source in the
	interceptor list as well as set by the targetSource property
-->	

<beans>
	
	
	<bean id="adam" class="org.springframework.beans.TestBean">
		<property name="name"><value>Adam</value></property>
	</bean>
	
	<bean id="countingBeforeAdvice"
		class="org.springframework.aop.framework.CountingBeforeAdvice"
	/>
	
	<!--
       An error, as the target source or non-advice object
       must be last
    --> 
	<bean id="targetSourceNotLast" 
		class="org.springframework.aop.framework.ProxyFactoryBean"> 
		<property name="proxyInterfaces"><value>org.springframework.beans.ITestBean</value></property>
		<!-- this is the one used and NOT the one set by targetSource -->
		<property name="interceptorNames"><value>adam,countingBeforeAdvice</value></property>
		
	</bean>
		
</beans>		
	
	