PageRenderTime 31ms CodeModel.GetById 16ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

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