1 1 1
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="<http://www.springframework.org/schema/beans>"
	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>">
	
	<!-- applicationContext.xml -->
	
	<!-- Bar bar = new Bar() -->
	<bean id="bar" class="com.di.ex02.Bar"></bean>
	
	<!-- Foo fooA = new Foo() -->
	<bean id="fooA" class="com.di.ex02.Foo"></bean>
	
	<!-- Foo fooB = new Foo("fooB") -->
	<bean id="fooB" class="com.di.ex02.Foo">
		<constructor-arg value="fooB"></constructor-arg>
	</bean>
	
	<!-- Foo fooC = new Foo(1,"fooC") -->
	<bean id="fooC" class="com.di.ex02.Foo">
		<constructor-arg index="0">
			<value>1</value>
		</constructor-arg>
		<constructor-arg index="1" value="fooC"></constructor-arg>
	</bean>
	
	<!-- Foo fooD = new Foo(2,"fooD",true) -->
	<bean id="fooD" class="com.di.ex02.Foo">
		<constructor-arg value="2"/>
		<constructor-arg value="fooD"/>
		<constructor-arg value="true"/>
	</bean>
	
	<!-- Foo fooE = new Foo(bar) -->
	<bean id="fooE" class="com.di.ex02.Foo">
		<constructor-arg>
			<ref bean="bar"/>
		</constructor-arg>
	</bean>
</beans>