]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.simple/src/test/resources/org/argeo/slc/core/execution/resourceTest.xml
Introduce resource spec attribute
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / test / resources / org / argeo / slc / core / execution / resourceTest.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3 xmlns:p="http://www.springframework.org/schema/p" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xmlns:aop="http://www.springframework.org/schema/aop"
5 xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
6 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
7
8 <import resource="imports.xml" />
9
10 <bean id="resourceSimple" parent="slcTemplate.simpleFlow">
11 <constructor-arg>
12 <bean parent="slcTemplate.simpleSpec">
13 <property name="attributes">
14 <map>
15 <entry key="var">
16 <bean parent="specAttr.resource"
17 p:resource="classpath:/org/argeo/slc/core/execution/tasks/core.xml" />
18 </entry>
19 </map>
20 </property>
21 </bean>
22 </constructor-arg>
23 <property name="executables">
24 <list>
25 <bean parent="task.echo" scope="execution">
26 <property name="message" value="echo var=@{var}" />
27 <aop:scoped-proxy />
28 </bean>
29 </list>
30 </property>
31 </bean>
32
33 <bean id="resourceOverridden" parent="resourceSimple">
34 <constructor-arg>
35 <map>
36 <entry key="var" value="classpath:/org/argeo/slc/core/execution/specs.xml" />
37 </map>
38 </constructor-arg>
39 </bean>
40 </beans>