/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
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
- "http://www.springframework.org/dtd/spring-beans.dtd">
-
- <beans>
-
- <bean id="baseTransactionProxy"
- class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
- abstract="true">
- <property name="transactionManager" ref="transactionManager"/>
- <property name="transactionAttributes">
- <props>
- <!--
- <prop key="insert*">PROPAGATION_REQUIRED</prop>
- <prop key="update*">PROPAGATION_REQUIRED</prop>
- <prop key="*">PROPAGATION_REQUIRED,readOnly</prop>
-
-
- <prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
- -->
- <prop key="*">PROPAGATION_REQUIRED</prop>
- </props>
- </property>
- </bean>
-
- <bean id="drcp" class="com.bluesky.drcp.business.logic.DrcpImpl">
- <property name="clientConfigService" ref="clientConfigService"/>
- <property name="functionService" ref="functionService"/>
- <property name="moduleService" ref="moduleService"/>
- <property name="functionModuleService" ref="functionModuleService"/>
- <property name="functionAuthorizationService" ref="functionAuthorizationService"/>
- <property name="userService" ref="userService"/>
- <property name="roleService" ref="roleService"/>
- <property name="userRoleService" ref="userRoleService"/>
- <property name="logService" ref="logService"/>
- <property name="pluginService" ref="pluginService"/>
- <property name="globalVariableService" ref="globalVariableService"/>
- </bean>
-
- <bean id="clientConfigServiceTarget"
- class="com.bluesky.drcp.business.service.ClientConfigService">
- <property name="clientConfigDao" ref="clientConfigDao"/>
-
- </bean>
-
- <bean id="clientConfigService" parent="baseTransactionProxy">
- <property name="target" ref="clientConfigServiceTarget"/>
- </bean>
-
- <bean id="functionServiceTarget"
- class="com.bluesky.drcp.business.service.FunctionService">
- <property name="functionDao" ref="functionDao"/>
- </bean>
- <bean id="functionService" parent="baseTransactionProxy">
- <property name="target" ref="functionServiceTarget"/>
- </bean>
- <bean id="moduleServiceTarget"
- class="com.bluesky.drcp.business.service.ModuleService">
- <property name="functionModuleService" ref="functionModuleService"/>
- <property name="moduleDao" ref="moduleDao"/>
- </bean>
- <bean id="moduleService" parent="baseTransactionProxy">
- <property name="target" ref="moduleServiceTarget"/>
- </bean>
- <bean id="functionModuleServiceTarget"
- class="com.bluesky.drcp.business.service.FunctionModuleService">
- <property name="functionModuleDao" ref="functionModuleDao"/>
- <property name="functionDao" ref="functionDao"/>
- <property name="moduleDao" ref="moduleDao"/>
- </bean>
- <bean id="functionModuleService" parent="baseTransactionProxy">
- <property name="target" ref="functionModuleServiceTarget"/>
- </bean>
- <bean id="functionAuthorizationServiceTarget"
- class="com.bluesky.drcp.business.service.FunctionAuthorizationService">
- <property name="functionAuthorizationDao" ref="functionAuthorizationDao"/>
- <property name="userRoleService" ref="userRoleService"/>
- <property name="functionService" ref="functionService"/>
- </bean>
- <bean id="functionAuthorizationService" parent="baseTransactionProxy">
- <property name="target" ref="functionAuthorizationServiceTarget"/>
- </bean>
-
- <bean id="logServiceTarget" class="com.bluesky.drcp.business.service.LogService">
- <property name="logDao" ref="logDao"/>
- </bean>
- <bean id="logService" parent="baseTransactionProxy">
- <property name="target" ref="logServiceTarget"/>
- </bean>
-
- <bean id="pluginServiceTarget"
- class="com.bluesky.drcp.business.service.PluginService">
- <property name="pluginDao" ref="pluginDao"/>
- </bean>
- <bean id="pluginService" parent="baseTransactionProxy">
- <property name="target" ref="pluginServiceTarget"/>
- </bean>
-
- <bean id="userServiceTarget"
- class="com.bluesky.drcp.business.service.UserService">
- <property name="userDao" ref="userDao"/>
- <property name="remoteAuthorizationService" ref="ldapAuthenticationService"/>
- </bean>
- <bean id="userService" parent="baseTransactionProxy">
- <property name="target" ref="userServiceTarget"/>
- </bean>
-
- <bean id="roleServiceTarget"
- class="com.bluesky.drcp.business.service.RoleService">
- <property name="roleDao" ref="roleDao"/>
- </bean>
- <bean id="roleService" parent="baseTransactionProxy">
- <property name="target" ref="roleServiceTarget"/>
- </bean>
-
- <bean id="userRoleServiceTarget"
- class="com.bluesky.drcp.business.service.UserRoleService">
- <property name="userRoleDao" ref="userRoleDao"/>
- </bean>
- <bean id="userRoleService" parent="baseTransactionProxy">
- <property name="target" ref="userRoleServiceTarget"/>
- </bean>
-
- <bean id="globalVariableServiceTarget"
- class="com.bluesky.drcp.business.service.GlobalVariableService">
- <property name="globalVariableDao" ref="globalVariableDao"/>
- </bean>
- <bean id="globalVariableService" parent="baseTransactionProxy">
- <property name="target" ref="globalVariableServiceTarget"/>
- </bean>
-
- <bean id="soapAuthenticationService"
- class="com.bluesky.drcp.business.service.SoapAuthenticationService">
- <property name="location" value="${soapAuthentication.location}"/>
- <property name="serviceName" value="${soapAuthentication.serviceName}"/>
- <property name="portName" value="${soapAuthentication.portName}"/>
- <property name="operationName" value="${soapAuthentication.operationName}"/>
- </bean>
-
- <bean id="ldapAuthenticationService"
- class="com.bluesky.drcp.business.service.LdapAuthenticationService">
- <property name="hostNames" value="${ldapAuthentication.hostNames}"/>
- <property name="domainName" value="${ldapAuthentication.domainName}"/>
- <property name="port" value="${ldapAuthentication.port}"/>
- </bean>
-
- </beans>