Given the following code of spring.xml, it seens that something is wrong with idref ... please explain what
<?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="triangle" class="org.koushik.javabrains.Triangle">
<property name="pointA">
<idref bean="zeroPoint"/>
</property>
<property name="pointB">
<bean class="org.koushik.javabrains.Point">
<property name="x" value="-20" />
<property name="y" value="0" />
</bean>
</property>
<property name="pointC">
<bean class="org.koushik.javabrains.Point">
<property name="x" value="20" />
<property name="y" value="0" />
</bean>
</property>
</bean>
<bean id="zeroPoint" class="org.koushik.javabrains.Point">
<property name="x" value="0" />
<property name="y" value="0" />
</bean>
<alias name="triangle" alias="triangle-alias" />
<alias name="triangle" alias="triunghi" />
</beans>
From some source I found that:
<property name="pointD">
<idref bean="squarePointD"/>
</property>
is equals to the below one
<property name="pointD">
<value>squarePointD</value>
</property>
