Clean legacy Code, Adapt spring links
[gpl/argeo-suite.git] / org.argeo.suite.workbench.rap / META-INF / spring / services.xml
diff --git a/org.argeo.suite.workbench.rap/META-INF/spring/services.xml b/org.argeo.suite.workbench.rap/META-INF/spring/services.xml
new file mode 100644 (file)
index 0000000..0d73968
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:util="http://www.springframework.org/schema/util" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+       http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
+
+       <!-- Assembly of the various AppWorkbenchServices -->
+       <bean id="activitiesWorkbenchService"
+               class="org.argeo.connect.activities.workbench.ActivitiesWorkbenchService" />
+
+       <bean id="peopleWorkbenchService"
+               class="org.argeo.connect.people.workbench.rap.PeopleWorkbenchServiceImpl" />
+
+       <bean id="documentsWorkbenchService"
+               class="org.argeo.connect.documents.workbench.DocumentsWorkbenchService" />
+
+       <!--order is important -->
+       <util:list id="knownWbServices">
+               <ref bean="activitiesWorkbenchService" />
+               <ref bean="peopleWorkbenchService" />
+               <ref bean="documentsWorkbenchService" />
+       </util:list>
+
+       <bean id="suiteWorkbenchService" class="org.argeo.suite.workbench.AsWorkbenchServiceImpl">
+               <property name="knownAppWbServices" ref="knownWbServices" />
+       </bean>
+
+</beans>
\ No newline at end of file