forked from cinexin/JavaBrainsSpringTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspring.xml
More file actions
53 lines (41 loc) · 1.66 KB
/
spring.xml
File metadata and controls
53 lines (41 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?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-3.0.xsd" >
<bean id="parentTriangle" class="org.migue.learning.spring.Triangle" name="triangle-name" >
<property name="pointA">
<ref bean="pointA"/>
</property>
</bean>
<bean id ="triangle1" class="org.migue.learning.spring.Triangle" parent="parentTriangle" >
<property name="pointB">
<ref bean="pointB"/>
</property>
<property name="pointC">
<ref bean="pointC"/>
</property>
</bean>
<bean id ="triangle2" class="org.migue.learning.spring.Triangle" parent="parentTriangle" >
<property name="pointB">
<ref bean="pointB"/>
</property>
</bean>
<bean id="pointA" class="org.migue.learning.spring.Point" >
<property name="x" value="${pointA.pointX}" />
<property name="y" value="${pointA.pointY}" />
</bean>
<bean id="pointB" class="org.migue.learning.spring.Point" >
<property name="x" value="-10" />
<property name="y" value="-10" />
</bean>
<bean id="pointC" class="org.migue.learning.spring.Point" >
<property name="x" value="10" />
<property name="y" value="10" />
</bean>
<!-- <bean class="org.migue.learning.spring.DisplayNameBeanPostProcessor" /> -->
<!-- <bean class="org.migue.learning.spring.MyBeanFactoryPostProcessor" />-->
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" >
<property name="locations" value="pointsconfig.properties"></property>
</bean>
</beans>