]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.simple/src/main/resources/org/argeo/slc/core/execution/spring.xml
Attachments management
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.simple / src / main / resources / org / argeo / slc / core / execution / spring.xml
index 5d684fb399f6752b5f131b13e83f4d19b8113a91..ef7d1499eb3035ebb88bd601b1b4d77365d1ab83 100644 (file)
@@ -7,23 +7,46 @@
        http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
 
+       <import resource="specs.xml" />
+       <import resource="tasks/core.xml" />
+
        <bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
                <property name="scopes">
                        <map>
                                <entry key="execution">
-                                       <bean class="org.argeo.slc.core.execution.ExecutionScope" />
+                                       <ref local="executionScope"/>
                                </entry>
                        </map>
                </property>
        </bean>
 
+       <bean id="executionScope" class="org.argeo.slc.core.execution.ExecutionScope" />
+
        <bean
                class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" />
 
-       <bean class="org.argeo.slc.core.execution.ExecutionParameterPostProcessor" />
-       <bean class="org.argeo.slc.core.execution.InstantiationPostProcessor" />
-       <bean class="org.argeo.slc.core.execution.Executor" />
-       <bean class="org.argeo.slc.core.execution.ExecutionAspect"/>
+       <bean id="executionContext" class="org.argeo.slc.core.execution.MapExecutionContext" scope="execution">
+               <aop:scoped-proxy />
+       </bean>
+
+       <bean id="instantiationManager" class="org.argeo.slc.core.execution.InstantiationManager" />
+       
+       <bean id="parameterRef" factory-bean="instantiationManager" factory-method="createRef"
+               abstract="true" />      
+
+       <bean class="org.argeo.slc.core.execution.ExecutionParameterPostProcessor" >
+               <property name="executionContext" ref="executionContext" />
+               <property name="executionScope" ref="executionScope"/>
+               <property name="instantiationManager" ref="instantiationManager" />
+       </bean>
+
+       <bean class="org.argeo.slc.core.execution.InstantiationPostProcessor">
+               <property name="instantiationManager" ref="instantiationManager" />
+       </bean>
+               
+       <bean class="org.argeo.slc.core.execution.ExecutionAspect">
+               <property name="executionContext" ref="executionContext" />
+       </bean>
 
        <aop:aspectj-autoproxy />