]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - demo/modules/org.argeo.slc.demo.basic/META-INF/spring/canonic-ns.xml
Rename site into modules
[gpl/argeo-slc.git] / demo / modules / org.argeo.slc.demo.basic / META-INF / spring / canonic-ns.xml
diff --git a/demo/modules/org.argeo.slc.demo.basic/META-INF/spring/canonic-ns.xml b/demo/modules/org.argeo.slc.demo.basic/META-INF/spring/canonic-ns.xml
new file mode 100644 (file)
index 0000000..adf60c1
--- /dev/null
@@ -0,0 +1,57 @@
+<?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
+       xmlns:aop="http://www.springframework.org/schema/aop" xmlns:flow="http://www.argeo.org/schema/slc-flow"\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
+       http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-0.12.xsd">\r
+\r
+       <flow:spec id="canonic-ns.spec">\r
+               <flow:primitive name="parameterAtInstantiation"\r
+                       isParameter="true" type="integer" />\r
+               <flow:primitive name="displayWithoutControl" value="100"\r
+                       isParameter="true" type="integer" isFrozen="true" />\r
+               <flow:primitive name="displayWithControl" value="200"\r
+                       isParameter="true" type="integer" />\r
+               <flow:primitive name="hide" value="300" isParameter="true"\r
+                       type="integer" isHidden="true" />\r
+               <flow:ref name="refWithValue" targetClass="org.argeo.slc.core.test.BasicTestData"\r
+                       isParameter="true" ref="testDataNok" />\r
+               <flow:ref name="refWithoutValue" targetClass="org.argeo.slc.core.test.BasicTestData" />\r
+               <flow:ref name="refWithoutValueFrozen" targetClass="org.argeo.slc.core.test.BasicTestData"\r
+                       isParameter="true" isFrozen="true">\r
+                       <flow:value>\r
+                               <bean class="org.argeo.slc.core.test.BasicTestData">\r
+                                       <aop:scoped-proxy />\r
+                                       <property name="expected" value="tata" />\r
+                                       <property name="reached" value="tata" />\r
+                               </bean>\r
+                       </flow:value>\r
+               </flow:ref>\r
+       </flow:spec>\r
+\r
+       <flow:flow id="canonic-ns.flowTemplate" abstract="true"\r
+               spec="canonic-ns.spec">\r
+               <bean parent="task.echo"\r
+                       p:message="Canonical: displayWithControl=@{displayWithControl}, displayWithoutControl=@{displayWithoutControl}, hide=@{hide}"\r
+                       scope="execution">\r
+                       <aop:scoped-proxy />\r
+               </bean>\r
+       </flow:flow>\r
+\r
+       <bean id="testDataOk" class="org.argeo.slc.core.test.BasicTestData">\r
+               <aop:scoped-proxy />\r
+               <property name="expected" value="tata" />\r
+               <property name="reached" value="tata" />\r
+       </bean>\r
+\r
+       <bean id="testDataNok" class="org.argeo.slc.core.test.BasicTestData">\r
+               <aop:scoped-proxy />\r
+               <property name="expected" value="tata" />\r
+               <property name="reached" value="toto" />\r
+       </bean>\r
+\r
+\r
+</beans>
\ No newline at end of file