1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
3
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
|
4
|
xmlns:t="http://dnetlib.eu/springbeans/t" xmlns:template="http://dnetlib.eu/springbeans/template"
|
5
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
|
6
|
http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd">
|
7
|
|
8
|
|
9
|
<template:instance name="testTemplate" t:beanName="test"
|
10
|
t:someValue="expandedValue" />
|
11
|
|
12
|
<template:define name="testTemplate">
|
13
|
<bean name="dummyName" t:name="$beanName$"
|
14
|
class="eu.dnetlib.springutils.template.TestBean" p:address="$someValue$"
|
15
|
p:next-ref="$beanName$-tail">
|
16
|
</bean>
|
17
|
|
18
|
<bean id="tail" t:id="$beanName$-tail" class="eu.dnetlib.springutils.template.TestBean"
|
19
|
p:address="tail-$someValue$" />
|
20
|
</template:define>
|
21
|
|
22
|
</beans>
|