<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:context="http://www.springframework.org/schema/context"
	xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
	xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="
		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
		http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
		http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
		http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd">

	<context:annotation-config />

	<bean id="proxied" class="org.springframework.batch.core.scope.TestStep">
		<property name="collaborator">
			<bean
				class="org.springframework.batch.core.scope.TestDisposableCollaborator"
				scope="step">
				<property name="name" value="bar" />
			</bean>
		</property>
	</bean>

	<bean id="ref" class="org.springframework.batch.core.scope.TestStep">
		<property name="collaborator">
			<bean
				class="org.springframework.batch.core.scope.TestDisposableCollaborator"
				scope="step">
				<property name="name" value="spam" />
				<property name="parent" ref="bar"/>
			</bean>
		</property>
	</bean>

	<bean id="nested" class="org.springframework.batch.core.scope.TestStep">
		<property name="collaborator">
			<bean class="org.springframework.batch.core.scope.TestCollaborator"
				scope="step">
				<property name="name" value="bar" />
				<property name="parent">
					<bean
						class="org.springframework.batch.core.scope.TestDisposableCollaborator">
						<property name="name" value="foo" />
					</bean>
				</property>
			</bean>
		</property>
	</bean>

	<bean id="foo"
		class="org.springframework.batch.core.scope.TestDisposableCollaborator">
		<property name="name" value="foo" />
	</bean>

	<bean id="bar"
		class="org.springframework.batch.core.scope.TestDisposableCollaborator" scope="step">
		<property name="name" value="bar" />
	</bean>

	<aop:aspectj-autoproxy />
	<bean class="org.springframework.batch.core.scope.TestAdvice" />
	<bean class="org.springframework.batch.core.scope.context.StepScopeManager" />
	<bean class="org.springframework.batch.core.scope.StepScope" />

</beans>