-
Notifications
You must be signed in to change notification settings - Fork 7
/
moduleApplicationContext.xml
58 lines (53 loc) · 2.77 KB
/
moduleApplicationContext.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="UTF-8"?>
<!-- Beans to add to the current Application context definition -->
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd">
<context:component-scan base-package="org.openmrs.module.isanteplusreports" />
<!-- Wraps IsantePlusReportsService methods in DB transactions and OpenMRS interceptors,
which set audit info like dateCreated, changedBy, etc.-->
<bean id="isanteplusreports.IsantePlusReportsService"
class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
<property name="transactionManager">
<ref bean="transactionManager" />
</property>
<property name="target">
<bean class="org.openmrs.module.isanteplusreports.api.impl.IsantePlusReportsServiceImpl">
<property name="dao" ref="isanteplusreports.IsantePlusReportsDao" />
</bean>
</property>
<property name="preInterceptors">
<ref bean="serviceInterceptors" />
</property>
<property name="transactionAttributeSource">
<ref bean="transactionAttributeSource" />
</property>
</bean>
<!-- Adds IsantePlusReportsService to OpenMRS context so it can be accessed
calling Context.getService(IsantePlusReportsService.class) -->
<bean parent="serviceContext">
<property name="moduleService">
<list>
<value>org.openmrs.module.isanteplusreports.api.IsantePlusReportsService</value>
<ref bean="isanteplusreports.IsantePlusReportsService" />
</list>
</property>
</bean>
</beans>