]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - sandbox/argeo.slc.executionflow/src/slc/conf/main.xml
OSGi related POMs
[gpl/argeo-slc.git] / sandbox / argeo.slc.executionflow / src / slc / conf / main.xml
index e2c8dbea0634fe158ba9de8472c9801ee695a809..cd577729fc5a4987981fafe112483159fce44259 100644 (file)
@@ -1,18 +1,37 @@
 <?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"\r
+       xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context"\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/context http://www.springframework.org/schema/context/spring-context-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="common.xml" />\r
+\r
+       <import resource="basic.xml" />\r
        <import resource="testCases/basic-001.xml" />\r
        <import resource="testCases/basic-002.xml" />\r
 \r
-       <bean id="main" class="org.argeo.slc.executionflow.SimpleExecutionFlow">\r
+       <bean id="testLaunch" class="org.argeo.slc.execution.old.TestLaunch"\r
+               p:flowName="main" init-method="launch"/>\r
+\r
+       <bean id="main" class="org.argeo.slc.core.execution.SimpleExecutionFlow">\r
+               <property name="executionSpec">\r
+                       <bean class="org.argeo.slc.core.execution.SimpleExecutionSpec">\r
+                               <property name="attributes">\r
+                                       <map>\r
+                                               <entry key="testKey">\r
+                                                       <bean parent="specAttribute" p:value="660" />\r
+                                               </entry>\r
+                                       </map>\r
+                               </property>\r
+                       </bean>\r
+               </property>\r
                <property name="executables">\r
                        <list>\r
+                               <ref local="echo1" />\r
                                <ref bean="basic.001" />\r
                                <ref bean="basic.001" />\r
                                <ref bean="basic.002" />\r
                </property>\r
        </bean>\r
 \r
+       <bean id="echo1" parent="echoTemplate" scope="execution">\r
+               <property name="message"\r
+                       value="From main! @{testKey}, slc.flows=@{slc.flows}" />\r
+               <aop:scoped-proxy />\r
+       </bean>\r
+\r
+       <bean id="echoTemplate" class="org.argeo.slc.core.execution.tasks.Echo"\r
+               abstract="true">\r
+       </bean>\r
+\r
+       <context:annotation-config />\r
+       <bean class="org.argeo.slc.execution.ExecutionRegister" />\r
+\r
+\r
        <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">\r
                <property name="scopes">\r
                        <map>\r
                                <entry key="execution">\r
-                                       <bean class="org.argeo.slc.executionflow.ExecutionScope" />\r
+                                       <bean class="org.argeo.slc.core.execution.ExecutionScope" />\r
                                </entry>\r
                        </map>\r
                </property>\r
 \r
        <bean\r
                class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />\r
-       <bean class="org.argeo.slc.executionflow.ExecutionParameterPostProcessor" />\r
+       <bean class="org.argeo.slc.core.execution.ExecutionParameterPostProcessor" />\r
+       <bean class="org.argeo.slc.core.execution.InstantiationPostProcessor" />\r
+       <bean class="org.argeo.slc.core.execution.Executor" />\r
 \r
-       <bean class="org.argeo.slc.executionflow.ExecutionAspect"></bean>\r
+       <bean class="org.argeo.slc.core.execution.ExecutionAspect"></bean>\r
        <aop:aspectj-autoproxy />\r
 \r
 </beans>
\ No newline at end of file