blob: 978c1dfc59837d409ab4037d3f10f10b1726ee86 (
plain) (
blame)
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
|
<?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">
<!-- define the singleton properties Map, filled in with XmlConfiguration.getProperties() -->
<bean id="properties" class="java.util.Map"/>
<!-- extract a value from the property map -->
<bean id="testProperty" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject"><ref local="properties" /></property>
<property name="targetMethod" value="get" />
<property name="arguments"><list><value>test</value></list></property>
</bean>
<bean id="root" name="Some,Names,Main" class="org.eclipse.jetty.spring.TestConfiguration">
<property name="testString1" value="SetValue" />
<property name="testInt1" value="1" />
<property name="nested" ref="nested" />
<property name="testString2" ref="testProperty"/>
</bean>
<bean id="nested" class="org.eclipse.jetty.spring.TestConfiguration">
<property name="testInt2" value="2" />
<property name="testString1" value="nested" />
<property name="nested" ref="nestedDeep" />
</bean>
<bean id="nestedDeep" class="org.eclipse.jetty.spring.TestConfiguration">
<property name="testString1" value="deep" />
<property name="testInt2" value="2" />
</bean>
</beans>
|