/web/DRCP/war/WEB-INF/spring-business-service.xml

http://drcp.googlecode.com/ · XML · 147 lines · 123 code · 16 blank · 8 comment · 0 complexity · 4a975b7b8b87785c3d451d14866c5636 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
  3. "http://www.springframework.org/dtd/spring-beans.dtd">
  4. <beans>
  5. <bean id="baseTransactionProxy"
  6. class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
  7. abstract="true">
  8. <property name="transactionManager" ref="transactionManager"/>
  9. <property name="transactionAttributes">
  10. <props>
  11. <!--
  12. <prop key="insert*">PROPAGATION_REQUIRED</prop>
  13. <prop key="update*">PROPAGATION_REQUIRED</prop>
  14. <prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
  15. <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
  16. -->
  17. <prop key="*">PROPAGATION_REQUIRED</prop>
  18. </props>
  19. </property>
  20. </bean>
  21. <bean id="drcp" class="com.bluesky.drcp.business.logic.DrcpImpl">
  22. <property name="clientConfigService" ref="clientConfigService"/>
  23. <property name="functionService" ref="functionService"/>
  24. <property name="moduleService" ref="moduleService"/>
  25. <property name="functionModuleService" ref="functionModuleService"/>
  26. <property name="functionAuthorizationService" ref="functionAuthorizationService"/>
  27. <property name="userService" ref="userService"/>
  28. <property name="roleService" ref="roleService"/>
  29. <property name="userRoleService" ref="userRoleService"/>
  30. <property name="logService" ref="logService"/>
  31. <property name="pluginService" ref="pluginService"/>
  32. <property name="globalVariableService" ref="globalVariableService"/>
  33. </bean>
  34. <bean id="clientConfigServiceTarget"
  35. class="com.bluesky.drcp.business.service.ClientConfigService">
  36. <property name="clientConfigDao" ref="clientConfigDao"/>
  37. </bean>
  38. <bean id="clientConfigService" parent="baseTransactionProxy">
  39. <property name="target" ref="clientConfigServiceTarget"/>
  40. </bean>
  41. <bean id="functionServiceTarget"
  42. class="com.bluesky.drcp.business.service.FunctionService">
  43. <property name="functionDao" ref="functionDao"/>
  44. </bean>
  45. <bean id="functionService" parent="baseTransactionProxy">
  46. <property name="target" ref="functionServiceTarget"/>
  47. </bean>
  48. <bean id="moduleServiceTarget"
  49. class="com.bluesky.drcp.business.service.ModuleService">
  50. <property name="functionModuleService" ref="functionModuleService"/>
  51. <property name="moduleDao" ref="moduleDao"/>
  52. </bean>
  53. <bean id="moduleService" parent="baseTransactionProxy">
  54. <property name="target" ref="moduleServiceTarget"/>
  55. </bean>
  56. <bean id="functionModuleServiceTarget"
  57. class="com.bluesky.drcp.business.service.FunctionModuleService">
  58. <property name="functionModuleDao" ref="functionModuleDao"/>
  59. <property name="functionDao" ref="functionDao"/>
  60. <property name="moduleDao" ref="moduleDao"/>
  61. </bean>
  62. <bean id="functionModuleService" parent="baseTransactionProxy">
  63. <property name="target" ref="functionModuleServiceTarget"/>
  64. </bean>
  65. <bean id="functionAuthorizationServiceTarget"
  66. class="com.bluesky.drcp.business.service.FunctionAuthorizationService">
  67. <property name="functionAuthorizationDao" ref="functionAuthorizationDao"/>
  68. <property name="userRoleService" ref="userRoleService"/>
  69. <property name="functionService" ref="functionService"/>
  70. </bean>
  71. <bean id="functionAuthorizationService" parent="baseTransactionProxy">
  72. <property name="target" ref="functionAuthorizationServiceTarget"/>
  73. </bean>
  74. <bean id="logServiceTarget" class="com.bluesky.drcp.business.service.LogService">
  75. <property name="logDao" ref="logDao"/>
  76. </bean>
  77. <bean id="logService" parent="baseTransactionProxy">
  78. <property name="target" ref="logServiceTarget"/>
  79. </bean>
  80. <bean id="pluginServiceTarget"
  81. class="com.bluesky.drcp.business.service.PluginService">
  82. <property name="pluginDao" ref="pluginDao"/>
  83. </bean>
  84. <bean id="pluginService" parent="baseTransactionProxy">
  85. <property name="target" ref="pluginServiceTarget"/>
  86. </bean>
  87. <bean id="userServiceTarget"
  88. class="com.bluesky.drcp.business.service.UserService">
  89. <property name="userDao" ref="userDao"/>
  90. <property name="remoteAuthorizationService" ref="ldapAuthenticationService"/>
  91. </bean>
  92. <bean id="userService" parent="baseTransactionProxy">
  93. <property name="target" ref="userServiceTarget"/>
  94. </bean>
  95. <bean id="roleServiceTarget"
  96. class="com.bluesky.drcp.business.service.RoleService">
  97. <property name="roleDao" ref="roleDao"/>
  98. </bean>
  99. <bean id="roleService" parent="baseTransactionProxy">
  100. <property name="target" ref="roleServiceTarget"/>
  101. </bean>
  102. <bean id="userRoleServiceTarget"
  103. class="com.bluesky.drcp.business.service.UserRoleService">
  104. <property name="userRoleDao" ref="userRoleDao"/>
  105. </bean>
  106. <bean id="userRoleService" parent="baseTransactionProxy">
  107. <property name="target" ref="userRoleServiceTarget"/>
  108. </bean>
  109. <bean id="globalVariableServiceTarget"
  110. class="com.bluesky.drcp.business.service.GlobalVariableService">
  111. <property name="globalVariableDao" ref="globalVariableDao"/>
  112. </bean>
  113. <bean id="globalVariableService" parent="baseTransactionProxy">
  114. <property name="target" ref="globalVariableServiceTarget"/>
  115. </bean>
  116. <bean id="soapAuthenticationService"
  117. class="com.bluesky.drcp.business.service.SoapAuthenticationService">
  118. <property name="location" value="${soapAuthentication.location}"/>
  119. <property name="serviceName" value="${soapAuthentication.serviceName}"/>
  120. <property name="portName" value="${soapAuthentication.portName}"/>
  121. <property name="operationName" value="${soapAuthentication.operationName}"/>
  122. </bean>
  123. <bean id="ldapAuthenticationService"
  124. class="com.bluesky.drcp.business.service.LdapAuthenticationService">
  125. <property name="hostNames" value="${ldapAuthentication.hostNames}"/>
  126. <property name="domainName" value="${ldapAuthentication.domainName}"/>
  127. <property name="port" value="${ldapAuthentication.port}"/>
  128. </bean>
  129. </beans>