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