]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - sandbox/argeo.slc.executionflow/src/slc/conf/testCases/basic-001.xml
Introduce aspects and execution parameters
[gpl/argeo-slc.git] / sandbox / argeo.slc.executionflow / src / slc / conf / testCases / basic-001.xml
index 494f9789de8080116dc252faaf51c945b1e90e74..c35361bdb409cca43a602e8954b1f0e560767945 100644 (file)
@@ -1,14 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>\r
 <beans xmlns="http://www.springframework.org/schema/beans"\r
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"\r
-       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
+       xmlns:aop="http://www.springframework.org/schema/aop"\r
+       xsi:schemaLocation="\r
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
+       http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd\r
+       http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">\r
 \r
        <import resource="../basic.xml" />\r
 \r
-       <bean id="basic.001" parent="basic.executionFlowTemplate">\r
+       <bean id="basic.001" parent="basic.executionFlowTemplate" scope="execution">\r
+               <aop:scoped-proxy />\r
                <property name="attributes">\r
                        <map>\r
-                               <entry key="testData1" value-ref="basic.001.testData"/>\r
+                               <entry key="testData1" value-ref="basic.001.testData" />\r
                                <entry key="testData2">\r
                                        <bean class="org.argeo.slc.core.test.BasicTestData">\r
                                                <property name="expected" value="tata" />\r
                </property>\r
        </bean>\r
 \r
-       <bean id="basic.001.testData" class="org.argeo.slc.core.test.BasicTestData">\r
-               <property name="expected" value="toto" />\r
-               <property name="reached" value="toto" />\r
+       <bean id="basic.001.testData" class="org.argeo.slc.core.test.BasicTestData"\r
+               scope="execution">\r
+               <aop:scoped-proxy />\r
+               <property name="expected" value="tata100" />\r
+               <property name="reached" value="tata@{testedComponentId}" />\r
        </bean>\r
 \r
        <bean id="basic.001.testData2" class="org.argeo.slc.core.test.context.DefaultContextTestData">\r