]> git.argeo.org Git - gpl/argeo-slc.git/blob - runtime/org.argeo.slc.support.simple/src/main/resources/org/argeo/slc/core/execution/spring.xml
Added InstantiationManager
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / resources / org / argeo / slc / core / execution / spring.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"
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/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
9
10 <import resource="specs.xml" />
11 <import resource="tasks/core.xml" />
12
13 <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
14 <property name="scopes">
15 <map>
16 <entry key="execution">
17 <ref local="executionScope"/>
18 </entry>
19 </map>
20 </property>
21 </bean>
22
23 <bean id="executionScope" class="org.argeo.slc.core.execution.ExecutionScope" />
24
25 <bean
26 class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
27
28 <bean id="executionContext" class="org.argeo.slc.core.execution.MapExecutionContext" scope="execution">
29 <aop:scoped-proxy />
30 </bean>
31
32 <bean id="instantiationManager" class="org.argeo.slc.core.execution.InstantiationManager" />
33
34 <bean id="parameterRef" factory-bean="instantiationManager" factory-method="createRef"
35 abstract="true" />
36
37 <bean class="org.argeo.slc.core.execution.ExecutionParameterPostProcessor" >
38 <property name="executionContext">
39 <ref local="executionContext" />
40 </property>
41 <property name="executionScope">
42 <ref local="executionScope"/>
43 </property>
44 <property name="instantiationManager">
45 <ref local="instantiationManager" />
46 </property>
47 </bean>
48
49 <bean class="org.argeo.slc.core.execution.InstantiationPostProcessor">
50 <property name="instantiationManager">
51 <ref local="instantiationManager" />
52 </property>
53 </bean>
54
55 <bean class="org.argeo.slc.core.execution.ExecutionAspect">
56 <property name="executionContext">
57 <ref local="executionContext" />
58 </property>
59 </bean>
60
61 <aop:aspectj-autoproxy />
62
63 </beans>