]>
git.argeo.org Git - gpl/argeo-slc.git/blob - demo/modules/org.argeo.slc.demo.basic/META-INF/spring/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" xmlns:
flow=
"http://www.argeo.org/schema/slc-flow"
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">
11 <bean id=
"basic.spec" parent=
"slcTemplate.simpleSpec">
12 <property name=
"attributes">
14 <entry key=
"testedComponentId">
15 <bean parent=
"specAttr.primitive" p:
value=
"100" p:
isParameter=
"true"
18 <entry key=
"testData1">
19 <bean parent=
"specAttr.ref" p:
targetClass=
"org.argeo.slc.core.test.BasicTestData"
20 p:
isParameter=
"true" p:
isFrozen=
"true" />
22 <entry key=
"testData2">
23 <bean parent=
"specAttr.ref" p:
targetClass=
"org.argeo.slc.core.test.BasicTestData"
24 p:
isParameter=
"true" p:
isFrozen=
"true" />
30 <!-- <bean id="basic.ref" factory-bean="basic.spec" factory-method="createRef"
31 abstract="true" /> -->
33 <bean id=
"basic.flowTemplate" parent=
"slcTemplate.simpleFlow"
35 <constructor-arg ref=
"basic.spec" />
36 <property name=
"path" value=
"/test/basic" />
37 <property name=
"executables">
39 <bean parent=
"task.echo" scope=
"execution">
40 <property name=
"message" value=
"From basic @{testedComponentId}" />
43 <bean parent=
"basic.testRun">
44 <property name=
"testDefinition" ref=
"basic.testDef" />
45 <property name=
"testData">
46 <bean parent=
"parameterRef">
47 <constructor-arg value=
"testData1" />
51 <bean parent=
"basic.testRun">
52 <property name=
"testDefinition" ref=
"basic.testDef" />
53 <property name=
"testData" ref=
"ref1" />
56 <bean class=
"org.argeo.slc.jcr.JcrMetadataWriter">
57 <property name=
"metadata">
59 <entry key=
"metadata1" value=
"value1" />
60 <entry key=
"slc:metadata2" value=
"value2" />
63 <property name=
"baseNode">
64 <bean factory-bean=
"basic.testResult" factory-method=
"getNode" />
70 <bean parent=
"task.echo">
71 <property name=
"message" value=
"DATA" />
72 <property name=
"writeTo" ref=
"basic.writeTo" />
75 <bean parent=
"task.uploadAttachments">
76 <property name=
"attachmentUploader" ref=
"attachmentUploader" />
77 <property name=
"attachment">
78 <bean parent=
"taskArg.attachment">
79 <property name=
"name" value=
"myAttachment.txt" />
82 <property name=
"resource" ref=
"basic.writeTo" />
83 <property name=
"attachTo">
85 <ref bean=
"basic.testResult" />
90 <bean parent=
"task.closeTestResult" scope=
"execution">
91 <property name=
"testResult" ref=
"basic.testResult" />
97 <bean id=
"ref1" parent=
"parameterRef" scope=
"prototype">
98 <constructor-arg value=
"testData2" />
102 <bean id=
"basic.testData" class=
"org.argeo.slc.core.test.BasicTestData">
104 <property name=
"expected" value=
"tata" />
105 <property name=
"reached" value=
"tata" />
108 <bean id=
"basic.testDef" class=
"org.argeo.slc.core.test.BasicTestDefinition"
111 <bean id=
"basic.testResult" class=
"org.argeo.slc.jcr.JcrTestResult"
112 init-method=
"init" destroy-method=
"destroy">
114 <property name=
"resultType" value=
"slc:diffResult" />
115 <property name=
"attributes">
117 <entry key=
"testCase" value=
"@{slcVar.flow.name}" />
120 <property name=
"repository" ref=
"repository" />
123 <!-- <bean id="basic.testResult" parent="slcDefault.test.basicTreeTestResult" -->
124 <!-- scope="execution"> -->
125 <!-- <property name="listeners" ref="resultListeners" /> -->
126 <!-- <property name="attributes"> -->
128 <!-- <entry key="testedComponentId" value="@{testedComponentId}" /> -->
131 <!-- <aop:scoped-proxy /> -->
134 <bean id=
"basic.testRun" class=
"org.argeo.slc.core.test.SimpleTestRun"
136 <property name=
"testResult" ref=
"basic.testResult" />
139 <bean id=
"basic.writeTo" factory-bean=
"basic.resourcesManager"
140 factory-method=
"getWritableResource" scope=
"execution">
141 <constructor-arg value=
"subdir/writeTo" />
145 <bean id=
"basic.resourcesManager" parent=
"slcTemplate.fileResources">
146 <property name=
"executionContext" ref=
"executionContext" />