Salome HOME
Refactoring continues: UserService is created instead of UserDirectory. Database...
[tools/siman.git] / Workspace / Siman-Common / src / spring / globalContext.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans"
3         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4         xmlns:aop="http://www.springframework.org/schema/aop"
5         xmlns:context="http://www.springframework.org/schema/context"
6         xsi:schemaLocation="
7 http://www.springframework.org/schema/beans
8 http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
9 http://www.springframework.org/schema/aop
10 http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
11 http://www.springframework.org/schema/context
12 http://www.springframework.org/schema/context/spring-context-3.0.xsd">
13
14         <bean id="baseMessageSource" class="org.springframework.context.support.ResourceBundleMessageSource">
15                 <property name="basenames">
16                         <list>
17                                 <value>application</value>
18                                 <value>log-messages</value>
19                         </list>
20                 </property>
21         </bean>
22         
23         <!-- TODO: Replace database by services and DAOs -->
24         <bean id="database" class="org.splat.dal.dao.som.Database" factory-method="getInstance">
25                 <property name="sessionFactory" ref="simanSessionFactory" />
26         <property name="indexService" ref="indexService" />
27         <property name="userService" ref="userService" />
28                 <property name="repositoryService" ref="repositoryService" />
29         </bean>
30
31     <bean id="genericDAO" class="org.splat.dal.dao.kernel.GenericDAOImpl"
32         abstract="true">
33         <property name="sessionFactory" ref="simanSessionFactory" />
34     </bean>
35 </beans>