~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-i18n/dhis-i18n-translationstore-hibernate/src/main/resources/META-INF/dhis/beans.xml

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
       xsi:schemaLocation="
 
5
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
 
6
 
 
7
  <bean id="org.hisp.dhis.i18n.TranslationStore"
 
8
    class="org.hisp.dhis.i18n.hibernate.HibernateTranslationStore">
 
9
    <property name="sessionManager"
 
10
      ref="org.hisp.dhis.hibernate.HibernateSessionManager"/>
 
11
  </bean>
 
12
 
 
13
  <bean id="org.hisp.dhis.i18n.TranslationService"
 
14
    class="org.hisp.dhis.i18n.DefaultTranslationService">
 
15
    <property name="translationStore"
 
16
      ref="org.hisp.dhis.i18n.TranslationStore"/>
 
17
  </bean>
 
18
 
 
19
  <bean class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
 
20
    <property name="advice" ref="readOnlyTransactionInterceptor"/>
 
21
    <property name="pattern" value=".*\.TranslationStore\.get.*"/>
 
22
  </bean>
 
23
  
 
24
  <bean class="org.springframework.aop.support.RegexpMethodPointcutAdvisor">
 
25
    <property name="advice" ref="readWriteTransactionInterceptor"/>
 
26
    <property name="patterns">
 
27
      <list>
 
28
        <value>.*\.TranslationStore\.add.*</value>
 
29
        <value>.*\.TranslationStore\.update.*</value>
 
30
        <value>.*\.TranslationStore\.delete.*</value>
 
31
      </list>
 
32
    </property>
 
33
  </bean>
 
34
</beans>