]> git.argeo.org Git - gpl/argeo-slc.git/blob - sandbox/argeo.slc.executionflow/src/slc/conf/main.xml
Introduce executor and event notifications
[gpl/argeo-slc.git] / sandbox / argeo.slc.executionflow / src / slc / conf / main.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:context="http://www.springframework.org/schema/context"
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/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
9 http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
10
11 <import resource="testCases/basic-001.xml" />
12 <import resource="testCases/basic-002.xml" />
13
14 <bean id="main" class="org.argeo.slc.executionflow.SimpleExecutionFlow">
15 <property name="executionSpec">
16 <bean class="org.argeo.slc.executionflow.SimpleExecutionSpec">
17 <property name="attributes">
18 <map>
19 <entry key="testKey">
20 <bean parent="specAttribute" p:value="660" />
21 </entry>
22 </map>
23 </property>
24 </bean>
25 </property>
26 <property name="executables">
27 <list>
28 <ref local="echo1" />
29 <ref bean="basic.001" />
30 <ref bean="basic.001" />
31 <ref bean="basic.002" />
32 </list>
33 </property>
34 </bean>
35
36 <bean id="echo1" parent="echoTemplate" scope="execution">
37 <property name="message" value="From main! @{testKey}" />
38 <aop:scoped-proxy />
39 </bean>
40
41 <bean id="echoTemplate" class="org.argeo.slc.execution.tasks.Echo"
42 abstract="true">
43 </bean>
44
45 <context:annotation-config />
46 <bean class="org.argeo.slc.executionflow.ExecutionRegister" />
47
48
49 <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
50 <property name="scopes">
51 <map>
52 <entry key="execution">
53 <bean class="org.argeo.slc.executionflow.ExecutionScope" />
54 </entry>
55 </map>
56 </property>
57 </bean>
58
59 <bean
60 class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
61 <bean class="org.argeo.slc.executionflow.ExecutionParameterPostProcessor" />
62 <bean class="org.argeo.slc.executionflow.InstantiationPostProcessor" />
63 <bean class="org.argeo.slc.executionflow.Executor" />
64
65 <bean class="org.argeo.slc.executionflow.ExecutionAspect"></bean>
66 <aop:aspectj-autoproxy />
67
68 </beans>