]> git.argeo.org Git - gpl/argeo-slc.git/blob - demo/org.argeo.slc.demo.basic/src/main/resources/conf/basic.xml
Add OSGi boot
[gpl/argeo-slc.git] / demo / org.argeo.slc.demo.basic / src / main / resources / conf / basic.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"
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
10 <bean id="basic.spec" parent="slcTemplate.simpleSpec">
11 <property name="attributes">
12 <map>
13 <entry key="testedComponentId">
14 <bean parent="specAttr.primitive" p:value="100" p:isParameter="true"
15 p:type="integer" />
16 </entry>
17 <entry key="testData1">
18 <bean parent="specAttr.ref" p:targetClass="org.argeo.slc.core.test.BasicTestData"
19 p:isParameter="true" p:isFrozen="true" />
20 </entry>
21 <entry key="testData2">
22 <bean parent="specAttr.ref" p:targetClass="org.argeo.slc.core.test.BasicTestData"
23 p:isParameter="true" p:isFrozen="true" />
24 </entry>
25 </map>
26 </property>
27 </bean>
28
29 <bean id="basic.ref" factory-bean="basic.spec" factory-method="createRef"
30 abstract="true" />
31
32 <bean id="basic.flowTemplate" parent="slcTemplate.simpleFlow"
33 abstract="true">
34 <property name="executionSpec" ref="basic.spec" />
35 <property name="executables">
36 <list>
37 <ref bean="echo1" />
38 <bean parent="testRun">
39 <property name="testDefinition" ref="testDef" />
40 <property name="testData">
41 <bean parent="basic.ref">
42 <constructor-arg value="testData1" />
43 </bean>
44 </property>
45 </bean>
46 <bean parent="testRun">
47 <property name="testDefinition" ref="testDef" />
48 <property name="testData" ref="ref1" />
49 </bean>
50 </list>
51 </property>
52 </bean>
53
54 <bean id="ref1" parent="basic.ref" scope="prototype">
55 <constructor-arg value="testData2" />
56 </bean>
57
58
59 <bean id="basic.testData" class="org.argeo.slc.core.test.BasicTestData">
60 <aop:scoped-proxy />
61 <property name="expected" value="tata" />
62 <property name="reached" value="tata" />
63 </bean>
64
65 </beans>