<?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-4.3.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="properties" />
    <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>
