]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.server/src/main/resources/org/argeo/slc/server/spring/servletContext.xml
Centralize server spring configs
[gpl/argeo-slc.git] / org.argeo.slc.server / src / main / resources / org / argeo / slc / server / spring / servletContext.xml
diff --git a/org.argeo.slc.server/src/main/resources/org/argeo/slc/server/spring/servletContext.xml b/org.argeo.slc.server/src/main/resources/org/argeo/slc/server/spring/servletContext.xml
new file mode 100644 (file)
index 0000000..eafe27e
--- /dev/null
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns="http://www.springframework.org/schema/beans"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"\r
+       default-lazy-init="true">\r
+\r
+       <import\r
+               resource="classpath:/org/argeo/slc/hibernate/spring/applicationContext.xml" />\r
+\r
+       <!-- Services -->\r
+       <bean id="testManagerService"\r
+               class="org.argeo.slc.services.test.impl.TestManagerServiceImpl">\r
+               <constructor-arg ref="testResultDao" />\r
+               <constructor-arg ref="testRunDescriptorDao" />\r
+               <constructor-arg ref="slcExecutionDao" />\r
+               <constructor-arg ref="testResultCollectionDao" />\r
+       </bean>\r
+\r
+       <!-- DAOs -->\r
+       <bean id="testResultDao" parent="slcTemplates.dao.testResultDao">\r
+               <property name="sessionFactory" ref="sessionFactory" />\r
+       </bean>\r
+\r
+       <bean id="testResultCollectionDao"\r
+               parent="slcTemplates.dao.testResultCollectionDao">\r
+               <property name="sessionFactory" ref="sessionFactory" />\r
+       </bean>\r
+\r
+       <bean id="testRunDescriptorDao"\r
+               parent="slcTemplates.dao.testRunDescriptorDao">\r
+               <property name="sessionFactory" ref="sessionFactory" />\r
+       </bean>\r
+\r
+       <bean id="slcExecutionDao"\r
+               parent="slcTemplates.dao.slcExecutionDao">\r
+               <property name="sessionFactory" ref="sessionFactory" />\r
+       </bean>\r
+</beans>
\ No newline at end of file