Advertisement
Guest User

Untitled

a guest
Dec 27th, 2011
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
  3.  
  4. <!-- Beans to add to the current Application context definition -->
  5.  
  6. <beans>
  7.  
  8. <bean id="patientMatchingUrlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
  9. <property name="mappings">
  10. <props>
  11. <prop key="/module/@MODULE_ID@/config.list">matchConfig</prop>
  12. <prop key="/module/@MODULE_ID@/config.form">configForm</prop>
  13. <prop key="/module/@MODULE_ID@/schedule.list">matchSchedule</prop>
  14. <prop key="/module/@MODULE_ID@/schedule.form">scheduleForm</prop>
  15. <prop key="/module/@MODULE_ID@/dupes.list">matchDupes</prop>
  16. <prop key="/module/@MODULE_ID@/report.form">reportDupes</prop>
  17. <prop key="/module/@MODULE_ID@/metadata.form">reportMetadata</prop>
  18. </props>
  19. </property>
  20. </bean>
  21.  
  22. <bean id="configForm" class="@MODULE_PACKAGE@.web.ConfigurationSimpleFormController">
  23. <property name="commandName"><value>patientMatchingConfiguration</value></property>
  24. <property name="commandClass"><value>@MODULE_PACKAGE@.PatientMatchingConfiguration</value></property>
  25. <property name="formView"><value>/module/@MODULE_ID@/configForm</value></property>
  26. <property name="successView"><value>redirect:/module/@MODULE_ID@/config.list</value></property>
  27. </bean>
  28. <bean id="matchConfig" class="@MODULE_PACKAGE@.web.ConfigurationListSimpleFormController">
  29. <property name="formView"><value>/module/@MODULE_ID@/configList</value></property>
  30. </bean>
  31.  
  32. <bean id="matchSchedule" class="@MODULE_PACKAGE@.web.ScheduleSimpleFormController">
  33. <property name="formView"><value>/module/@MODULE_ID@/scheduleList</value></property>
  34. <property name="successView"><value>schedule.list</value></property>
  35. </bean>
  36. <bean id="scheduleForm" class="@MODULE_PACKAGE@.web.CreateScheduleFormController">
  37. <property name="commandName"><value>task</value></property>
  38. <property name="formView"><value>/module/@MODULE_ID@/scheduleForm</value></property>
  39. <property name="successView"><value>schedule.list</value></property>
  40. </bean>
  41.  
  42. <bean id="matchDupes" class="@MODULE_PACKAGE@.web.ReportSimpleFormController">
  43. <property name="formView"><value>/module/@MODULE_ID@/dupesList</value></property>
  44. <property name="successView"><value>/module/@MODULE_ID@/dupesList</value></property>
  45. </bean>
  46.  
  47. <bean id="reportDupes" class="@MODULE_PACKAGE@.web.ReportFormSimpleFormController">
  48. <property name="formView"><value>/module/@MODULE_ID@/reportForm</value></property>
  49. <property name="successView"><value>/module/@MODULE_ID@/reportForm</value></property>
  50. </bean>
  51.  
  52. <bean id="reportMetadata" class="@MODULE_PACKAGE@.web.ReportMetadataSimpleFormController">
  53. <property name="formView"><value>/module/@MODULE_ID@/metadataForm</value></property>
  54. <property name="successView"><value>/module/@MODULE_ID@/metadataForm</value></property>
  55. </bean>
  56.  
  57. <bean class="org.openmrs.module.patientmatching.HibernateConnection">
  58. <property name="sessionFactory"><ref bean="sessionFactory"/></property>
  59. </bean>
  60.  
  61. <bean parent="serviceContext">
  62. <property name="moduleService">
  63. <list>
  64. <value>org.openmrs.module.patientmatching.PatientMatchingReportMetadataService</value>
  65. <bean class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
  66. <property name="transactionManager"><ref bean="transactionManager"/></property>
  67. <property name="target">
  68. <bean class="org.openmrs.module.patientmatching.impl.PatientMatchingReportMetadataServiceImpl">
  69. <property name="PatientMatchingReportMetadataDao">
  70. <bean class="org.openmrs.module.patientmatching.db.hibernate.HibernatePatientMatchingReportMetadataDAO">
  71. <property name="sessionFactory"><ref bean="sessionFactory"/></property>
  72. </bean>
  73. </property>
  74. </bean>
  75. </property>
  76. <property name="preInterceptors">
  77. <ref bean="serviceInterceptors" />
  78. </property>
  79. <property name="transactionAttributeSource">
  80. <bean class="org.springframework.transaction.annotation.AnnotationTransactionAttributeSource"/>
  81. </property>
  82. </bean>
  83. </list>
  84. </property>
  85. </bean>
  86. </beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement