]> git.argeo.org Git - gpl/argeo-slc.git/blob - demo/modules/org.argeo.slc.demo.basic/META-INF/spring/canonic-ns.xml
[maven-release-plugin] prepare release argeo-slc-2.1.15
[gpl/argeo-slc.git] / demo / modules / org.argeo.slc.demo.basic / META-INF / spring / canonic-ns.xml
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:aop="http://www.springframework.org/schema/aop" xmlns:flow="http://www.argeo.org/schema/slc-flow"
5 xsi:schemaLocation="
6 http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
7 http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
8 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
9 http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">
10
11 <flow:spec id="canonic-ns.spec">
12 <flow:primitive name="parameterAtInstantiation"
13 isParameter="true" type="integer" />
14 <flow:primitive name="displayWithoutControl" value="100"
15 isParameter="true" type="integer" isFrozen="true" />
16 <flow:primitive name="displayWithControl" value="200"
17 isParameter="true" type="integer" />
18 <flow:primitive name="hide" value="300" isParameter="true"
19 type="integer" isHidden="true" />
20 <flow:ref name="refWithValue" targetClass="org.argeo.slc.core.test.BasicTestData"
21 isParameter="true" ref="testDataNok" />
22 <flow:ref name="refWithoutValue" targetClass="org.argeo.slc.core.test.BasicTestData" />
23 <flow:ref name="refWithoutValueFrozen" targetClass="org.argeo.slc.core.test.BasicTestData"
24 isParameter="true" isFrozen="true">
25 <flow:value>
26 <bean class="org.argeo.slc.core.test.BasicTestData">
27 <aop:scoped-proxy />
28 <property name="expected" value="tata" />
29 <property name="reached" value="tata" />
30 </bean>
31 </flow:value>
32 </flow:ref>
33 </flow:spec>
34
35 <flow:flow id="canonic-ns.flowTemplate" abstract="true"
36 spec="canonic-ns.spec">
37 <bean parent="task.echo"
38 p:message="Canonical: displayWithControl=@{displayWithControl}, displayWithoutControl=@{displayWithoutControl}, hide=@{hide}"
39 scope="execution">
40 <aop:scoped-proxy />
41 </bean>
42 </flow:flow>
43
44 <bean id="testDataOk" class="org.argeo.slc.core.test.BasicTestData">
45 <aop:scoped-proxy />
46 <property name="expected" value="tata" />
47 <property name="reached" value="tata" />
48 </bean>
49
50 <bean id="testDataNok" class="org.argeo.slc.core.test.BasicTestData">
51 <aop:scoped-proxy />
52 <property name="expected" value="tata" />
53 <property name="reached" value="toto" />
54 </bean>
55
56 </beans>