shatheesh
2/7/2019 - 11:34 AM

springProperty

<?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="triangleBean" class="org.shatheesh.TraiangleShape"> 
	<property name="pA" ref="zeroPoint"/>
	<property name="pB" ref="p2"/>
	<property name="pC" ref="p3" />
	</bean>
	
	<bean id="zeroPoint" class="org.shatheesh.Point">
		<property name="x" value="0"/>
		<property name="y" value="0"/>
		</bean>
	<bean id="p2" class="org.shatheesh.Point">
		<property name="x" value="-20"/>
		<property name="y" value="0"/>
		</bean>
	<bean id="p3" class="org.shatheesh.Point">
		<property name="x" value="20"/>
		<property name="y" value="0"/>
		</bean>
</beans>