Advertisement
Guest User

Untitled

a guest
Jun 1st, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.98 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3.  
  4. This Source Code Form is subject to the terms of the Mozilla Public License,
  5. v. 2.0. If a copy of the MPL was not distributed with this file, You can
  6. obtain one at http://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
  7. the terms of the Healthcare Disclaimer located at http://openmrs.org/license.
  8.  
  9. Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
  10. graphic logo is a trademark of OpenMRS Inc.
  11.  
  12. -->
  13. <!-- Beans to add to the current Application context definition -->
  14. <beans xmlns="http://www.springframework.org/schema/beans"
  15. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
  16. xmlns:context="http://www.springframework.org/schema/context"
  17. xmlns:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
  18. xmlns:aop="http://www.springframework.org/schema/aop" xmlns:util="http://www.springframework.org/schema/util"
  19. xsi:schemaLocation="http://www.springframework.org/schema/beans
  20. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  21. http://www.springframework.org/schema/context
  22. http://www.springframework.org/schema/context/spring-context-3.0.xsd
  23. http://www.springframework.org/schema/jee
  24. http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
  25. http://www.springframework.org/schema/tx
  26. http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  27. http://www.springframework.org/schema/aop
  28. http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
  29. http://www.springframework.org/schema/util
  30. http://www.springframework.org/schema/util/spring-util-3.0.xsd">
  31.  
  32. <context:component-scan base-package="org.openmrs.module.chitscore" />
  33.  
  34. <!-- Wraps CHITSService methods in DB transactions and OpenMRS interceptors,
  35. which set audit info like dateCreated, changedBy, etc.-->
  36. <bean id="chitscore.CHITSService"
  37. class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
  38. lazy-init="default" primary="false">
  39. <property name="transactionManager">
  40. <ref bean="transactionManager" />
  41. </property>
  42. <property name="target">
  43. <bean class="org.openmrs.module.chitscore.impl.CHITSServiceImpl">
  44. <property name="familyFolderDAO" ref="chitscore.HibernateFamilyFolderDAO" />
  45. <property name="householdInformationDAO" ref="chitscore.HibernateHouseholdInformationDAO" />
  46. <property name="patientQueueDAO" ref="chitscore.HibernatePatientQueueDAO" />
  47. <property name="templatesDAO" ref="chitscore.HibernateTemplatesDAO" />
  48. <property name="chitsConceptsDAO" ref="chitscore.HibernateCHITSConceptsDAO" />
  49. <property name="auditDAO" ref="chitscore.HibernateAuditDAO" />
  50. <property name="commodityDAO" ref="chitscore.HibernateCommodityDAO" />
  51. <property name="patientAppointmentDAO" ref="chitscore.HibernatePatientAppointmentDAO" />
  52. </bean>
  53. </property>
  54. <property name="preInterceptors">
  55. <ref bean="serviceInterceptors" />
  56. </property>
  57. <property name="transactionAttributeSource">
  58. <ref bean="transactionAttributeSource" />
  59. </property>
  60. </bean>
  61.  
  62. <bean id="chitscore.CHITSPatientSearchService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
  63. <property name="transactionManager"><ref bean="transactionManager"/></property>
  64. <property name="target">
  65. <bean class="org.openmrs.module.chitscore.impl.CHITSPatientSearchServiceImpl">
  66. <property name="patientSearchDAO">
  67. <bean class="org.openmrs.module.chitscore.db.hibernate.HibernatePatientSearchDAO" />
  68. </property>
  69. <property name="femalePatientSearchDAO">
  70. <bean class="org.openmrs.module.chitscore.db.hibernate.HibernatePatientSearchDAO">
  71. <property name="gender"><value>F</value></property>
  72. </bean>
  73. </property>
  74. <property name="malePatientSearchDAO">
  75. <bean class="org.openmrs.module.chitscore.db.hibernate.HibernatePatientSearchDAO">
  76. <property name="gender"><value>M</value></property>
  77. </bean>
  78. </property>
  79. </bean>
  80. </property>
  81. <property name="preInterceptors">
  82. <ref bean="serviceInterceptors" />
  83. </property>
  84. <property name="transactionAttributeSource">
  85. <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
  86. </property>
  87. </bean>
  88.  
  89. <bean parent="serviceContext">
  90. <property name="moduleService">
  91. <list>
  92. <value>org.openmrs.module.chitscore.CHITSService</value>
  93. <ref bean="chitscore.CHITSService" />
  94. </list>
  95. </property>
  96. </bean>
  97.  
  98. <bean parent="serviceContext">
  99. <property name="moduleService">
  100. <list>
  101. <value>org.openmrs.module.chitscore.CHITSPatientSearchService</value>
  102. <ref bean="chitscore.CHITSPatientSearchService" />
  103. </list>
  104. </property>
  105. </bean>
  106.  
  107. <bean id="chitscore.PHIEService" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
  108. <property name="transactionManager"><ref bean="transactionManager"/></property>
  109. <property name="target">
  110. <bean class="org.openmrs.module.chitscore.phie.PHIEServiceImpl">
  111. <property name="philhealthMemberRegistrationFormDAO">
  112. <bean class="org.openmrs.module.chitscore.phie.db.hibernate.HibernatePhilhealthMemberRegistrationFormDAO" />
  113. </property>
  114. </bean>
  115. </property>
  116. <property name="preInterceptors">
  117. <ref bean="serviceInterceptors" />
  118. </property>
  119. <property name="transactionAttributeSource">
  120. <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
  121. </property>
  122. </bean>
  123.  
  124. <bean parent="serviceContext">
  125. <property name="moduleService">
  126. <list>
  127. <value>org.openmrs.module.chitscore.phie.PHIEService</value>
  128. <ref bean="chitscore.PHIEService" />
  129. </list>
  130. </property>
  131. </bean>
  132.  
  133.  
  134.  
  135. <bean id="multipartResolver"
  136. class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
  137. <property name="maxUploadSize" value="100000" />
  138. <property name="uploadTempDir" ref="uploadDirResource" />
  139. </bean>
  140.  
  141. <bean id="uploadDirResource"
  142. class="org.springframework.core.io.FileSystemResource">
  143. <constructor-arg>
  144. <value>/openmrs/images/</value>
  145. </constructor-arg>
  146. </bean>
  147.  
  148. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement