Advertisement
Guest User

Untitled

a guest
May 10th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.35 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <!-- Beans to add to the current Application context definition -->
  4.  
  5. <beans xmlns="http://www.springframework.org/schema/beans"
  6. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7. xmlns:p="http://www.springframework.org/schema/p"
  8. xmlns:context="http://www.springframework.org/schema/context"
  9. xmlns:jee="http://www.springframework.org/schema/jee"
  10. xmlns:tx="http://www.springframework.org/schema/tx"
  11. xmlns:aop="http://www.springframework.org/schema/aop"
  12. xmlns:util="http://www.springframework.org/schema/util"
  13. xsi:schemaLocation="http://www.springframework.org/schema/beans
  14. http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  15. http://www.springframework.org/schema/context
  16. http://www.springframework.org/schema/context/spring-context-3.0.xsd
  17. http://www.springframework.org/schema/jee
  18. http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
  19. http://www.springframework.org/schema/tx
  20. http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  21. http://www.springframework.org/schema/aop
  22. http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
  23. http://www.springframework.org/schema/util
  24. http://www.springframework.org/schema/util/spring-util-3.0.xsd">
  25.  
  26. <context:component-scan base-package="org.openmrs.module.dermatology" />
  27.  
  28.  
  29.  
  30.  
  31. <bean id="dermatology.BodyRegionService"
  32. class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
  33. <property name="transactionManager">
  34. <ref bean="transactionManager" />
  35. </property>
  36.  
  37. <property name="target">
  38. <bean class="org.openmrs.module.dermatology.api.impl.BodyRegionServiceImpl">
  39. <property name="dao">
  40. <bean class="org.openmrs.module.dermatology.api.db.hibernate.HibernateBodyRegionDAO">
  41. <property name="sessionFactory">
  42. <ref bean="dbSessionFactory" />
  43. </property>
  44. </bean>
  45. </property>
  46. </bean>
  47. </property>
  48. <property name="preInterceptors">
  49. <ref bean="serviceInterceptors" />
  50. </property>
  51. <property name="transactionAttributeSource">
  52. <ref bean="transactionAttributeSource" />
  53. </property>
  54. </bean>
  55. <bean parent="serviceContext">
  56. <property name="moduleService">
  57. <list>
  58. <value>org.openmrs.module.dermatology.api.BodyRegionService</value>
  59. <ref local="dermatology.BodyRegionService"/>
  60. </list>
  61. </property>
  62. </bean>
  63.  
  64. <bean id="dermatology.LesionTypeService"
  65. class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
  66. <property name="transactionManager">
  67. <ref bean="transactionManager" />
  68. </property>
  69. <property name="target">
  70. <bean class="org.openmrs.module.dermatology.api.impl.LesionTypeServiceImpl">
  71. <property name="dao">
  72. <bean class="org.openmrs.module.dermatology.api.db.hibernate.HibernateLesionTypeDAO">
  73. <property name="sessionFactory">
  74. <ref bean="dbSessionFactory" />
  75. </property>
  76. </bean>
  77. </property>
  78. </bean>
  79. </property>
  80. <property name="preInterceptors">
  81. <ref bean="serviceInterceptors" />
  82. </property>
  83. <property name="transactionAttributeSource">
  84. <ref bean="transactionAttributeSource" />
  85. </property>
  86. </bean>
  87. <bean parent="serviceContext">
  88. <property name="moduleService">
  89. <list>
  90. <value>org.openmrs.module.dermatology.api.LesionTypeService</value>
  91. <ref local="dermatology.LesionTypeService"/>
  92. </list>
  93. </property>
  94. </bean>
  95.  
  96. <bean id="dermatology.SpecialityService"
  97. class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
  98. <property name="transactionManager">
  99. <ref bean="transactionManager" />
  100. </property>
  101. <property name="target">
  102. <bean class="org.openmrs.module.dermatology.api.impl.SpecialityServiceImpl">
  103. <property name="dao">
  104. <bean class="org.openmrs.module.dermatology.api.db.hibernate.HibernateSpecialityDAO">
  105. <property name="sessionFactory">
  106. <ref bean="dbSessionFactory" />
  107. </property>
  108. </bean>
  109. </property>
  110. </bean>
  111. </property>
  112. <property name="preInterceptors">
  113. <ref bean="serviceInterceptors" />
  114. </property>
  115. <property name="transactionAttributeSource">
  116. <ref bean="transactionAttributeSource" />
  117. </property>
  118. </bean>
  119. <bean parent="serviceContext">
  120. <property name="moduleService">
  121. <list>
  122. <value>org.openmrs.module.dermatology.api.SpecialityService</value>
  123. <ref local="dermatology.SpecialityService"/>
  124. </list>
  125. </property>
  126. </bean>
  127.  
  128.  
  129. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement