forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
messagebundle-components.xml
37 lines (35 loc) · 1.99 KB
/
messagebundle-components.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
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.xsd">
<bean id="org.sakaiproject.springframework.orm.hibernate.impl.AdditionalHibernateMappings.messagebundle"
class="org.sakaiproject.springframework.orm.hibernate.impl.AdditionalHibernateMappingsImpl">
<property name="annotatedClasses">
<list>
<value>org.sakaiproject.messagebundle.api.MessageBundleProperty</value>
</list>
</property>
</bean>
<bean id="org.sakaiproject.messagebundle.api.MessageBundleService"
class="org.sakaiproject.messagebundle.impl.CachingMessageBundleServiceImpl"
init-method="init"
destroy-method="destroy"
lazy-init="true">
<property name="memoryService" ref="org.sakaiproject.memory.api.MemoryService"/>
<property name="dbMessageBundleService">
<bean class="org.sakaiproject.messagebundle.impl.MessageBundleServiceImpl"
init-method="init"
destroy-method="destroy">
<property name="scheduleSaves" value="true" />
<property name="scheduleDelay" value="5000" />
<property name="sessionFactory" ref="org.sakaiproject.springframework.orm.hibernate.GlobalSessionFactory" />
<property name="serverConfigurationService" ref="org.sakaiproject.component.api.ServerConfigurationService" />
<property name="transactionTemplate">
<bean class="org.springframework.transaction.support.TransactionTemplate">
<property name="transactionManager" ref="org.sakaiproject.springframework.orm.hibernate.GlobalTransactionManager" />
</bean>
</property>
</bean>
</property>
</bean>
</beans>