]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - server/org.argeo.slc.siteserver/bundles/org.argeo.slc.server.services/META-INF/spring/services.xml
Attachments management
[gpl/argeo-slc.git] / server / org.argeo.slc.siteserver / bundles / org.argeo.slc.server.services / META-INF / spring / services.xml
index debb1c458daad11e50dce08110984554a4c47561..6151309e7add3577e3fca192ef797b47fe232326 100644 (file)
@@ -7,6 +7,26 @@
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd">
 
+       <bean
+               class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
+               <property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" />
+               <property name="ignoreUnresolvablePlaceholders" value="true" />
+               <property name="locations">
+                       <value>osgibundle:services.properties
+                       </value>
+               </property>
+       </bean>
+
+       <!-- Attachments -->
+       <bean id="attachmentsStorage" class="org.argeo.slc.core.attachment.FileAttachmentsStorage"></bean>
+
+       <!-- Events -->
+       <aop:aspectj-autoproxy />
+
+       <bean id="eventPublisherAspect" class="org.argeo.slc.services.EventPublisherAspect">
+               <property name="eventPublishers" ref="eventPublishers" />
+       </bean>
+
        <!-- Services -->
        <bean id="testManagerService" class="org.argeo.slc.services.impl.test.TestManagerServiceImpl">
                <constructor-arg ref="testResultDao" />
 
        <bean id="agentService" class="org.argeo.slc.services.impl.runtime.AgentServiceImpl">
                <constructor-arg ref="slcAgentDescriptorDao" />
+               <constructor-arg ref="agentFactory" />
+               <property name="pingCycle" value="${slc.server.services.pingCycle}" />
        </bean>
 
-       <bean id="slcExecutionService" class="org.argeo.slc.services.impl.process.SlcExecutionServiceImpl">
+       <bean id="slcExecutionService"
+               class="org.argeo.slc.services.impl.process.SlcExecutionServiceImpl">
                <constructor-arg ref="slcExecutionDao" />
        </bean>
 
-       <!-- Services transactions -->
-       <aop:config>
-               <aop:pointcut id="serviceMethods"
-                       expression="execution(* org.argeo.slc.services.test.TestManagerService.*(..))" />
-               <aop:advisor advice-ref="serviceAdvice" pointcut-ref="serviceMethods" />
-       </aop:config>
-
-       <tx:advice id="serviceAdvice" transaction-manager="transactionManager">
-               <tx:attributes>
-                       <tx:method name="*" propagation="REQUIRED" />
-               </tx:attributes>
-       </tx:advice>
-
+       <!--
+               Services transactions <aop:config> <aop:pointcut id="serviceMethods"
+               expression="execution(*
+               org.argeo.slc.services.test.TestManagerService.*(..))" /> <aop:advisor
+               advice-ref="serviceAdvice" pointcut-ref="serviceMethods" />
+               </aop:config> <tx:advice id="serviceAdvice"
+               transaction-manager="transactionManager"> <tx:attributes> <tx:method
+               name="*" propagation="REQUIRED" /> </tx:attributes> </tx:advice>
+       -->
 </beans>
\ No newline at end of file