blob: 3cb8165e8883f15106f3d6bf3ab159faec40fbfe [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util" xmlns:p="http://www.springframework.org/schema/p"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd">
<!-- the most powerful way -->
<bean id="yamlConstructor" class="examples.CustomConstructor" scope="prototype" />
<bean id="yamlRepresenter" class="org.yaml.snakeyaml.representer.Representer" scope="prototype" />
<bean id="yamlOptions" class="org.yaml.snakeyaml.DumperOptions" scope="prototype">
<property name="indent" value="2" />
</bean>
<bean id="snakeYaml" class="org.yaml.snakeyaml.Yaml" scope="prototype">
<constructor-arg ref="yamlConstructor" />
<constructor-arg ref="yamlRepresenter" />
<constructor-arg ref="yamlOptions" />
</bean>
<!-- for a single JavaBean -->
<bean id="beanConstructor" class="org.yaml.snakeyaml.constructor.Constructor" scope="prototype">
<constructor-arg value="org.yaml.snakeyaml.Invoice" />
</bean>
<bean id="javabeanYaml" class="org.yaml.snakeyaml.Yaml" scope="prototype">
<constructor-arg ref="beanConstructor" />
</bean>
<!-- the simplest way -->
<bean id="standardYaml" class="org.yaml.snakeyaml.Yaml" scope="prototype" />
<!--
For SpringTest.testTypeDescriptionWithBean BEGIN
-->
<bean id="dataRegistry" class="examples.spring.DataRegistry" scope="singleton"/>
<bean id="testEntityDescription" class="examples.spring.TestEntityDescription" scope="singleton">
<property name="dataRegistry" ref="dataRegistry" />
</bean>
<bean id="propertyUtils" class="org.yaml.snakeyaml.introspector.PropertyUtils" scope="singleton" />
<bean id="beanConstructorWithCustomTypeDescriptions" class="org.yaml.snakeyaml.constructor.Constructor" scope="prototype">
<constructor-arg ref="testEntityDescription" />
<property name="propertyUtils" ref="propertyUtils" />
</bean>
<bean id="javabeanYamlWithCustomTypeDescriptions" class="org.yaml.snakeyaml.Yaml" scope="prototype">
<constructor-arg ref="beanConstructorWithCustomTypeDescriptions" />
</bean>
<!-- END -->
</beans>