Add a core bundle to keep separation between Workbench and web clean
[gpl/argeo-suite.git] / org.argeo.suite.core / META-INF / spring / application.xml
diff --git a/org.argeo.suite.core/META-INF/spring/application.xml b/org.argeo.suite.core/META-INF/spring/application.xml
new file mode 100644 (file)
index 0000000..460fc85
--- /dev/null
@@ -0,0 +1,27 @@
+<?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"
+       xmlns:p="http://www.springframework.org/schema/p"
+       xsi:schemaLocation="
+               http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
+        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd">
+
+       <bean id="peopleService" class="org.argeo.suite.people.PeopleSuiteServiceImpl"
+               init-method="init" destroy-method="destroy">
+               <property name="repository" ref="repository" />
+               <property name="workspaceName" value="main" />
+               <property name="userAdminService" ref="userAdminService" />
+       </bean>
+
+       <bean id="userAdminService" class="org.argeo.connect.people.core.UserAdminServiceImpl"
+               scope="singleton" lazy-init="false">
+               <property name="userTransaction" ref="userTransaction" />
+               <property name="userAdmin" ref="userAdmin" />
+               <property name="userAdminServiceReference" ref="userAdmin" />
+       </bean>
+
+       <!-- Execute initialization with a system authentication -->
+       <bean
+               class="org.argeo.cms.spring.AuthenticatedApplicationContextInitialization" />
+
+</beans>