spring-rpc.xml
4.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:cache="http://www.springframework.org/schema/cache"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc.xsd
http://www.springframework.org/schema/cache
http://www.springframework.org/schema/cache/spring-cache-4.3.xsd"
default-lazy-init="true">
<bean id="dtmsClient" class="com.b2c.dtms.client.DtmsClient">
<constructor-arg name="baseUrl" value="${dtms.baseUrl}" />
<constructor-arg name="token" value="${dtms.token}" />
</bean>
<bean id="dtmsService" class="com.b2c.dtms.client.service.DtmsService"
factory-bean="dtmsClient" factory-method="getDtmsService" />
<bean id="dtmsRPCService" class="com.b2c.orders.service.rpc.impl.DtmsRPCServiceBean">
<constructor-arg name="dtmsService" ref="dtmsService" />
<constructor-arg name="systemConfigService" ref="systemConfigRPCService" />
<property name="topic" value="${mq.orders.topic}" />
<property name="tag" value="${mq.orders.tag}" />
</bean>
<bean id="titanClient" class="com.diligrp.titan.sdk.TitanClient">
<constructor-arg index="0" value="111" type="java.lang.String" />
<constructor-arg index="1" value="111" type="java.lang.String" />
<constructor-arg index="2" value="http://api.titan.zandeapp.com"
type="java.lang.String" />
</bean>
<bean id="myAppClient" class="com.b2c.myapp.sdk.MyAppClient">
<constructor-arg name="token" value="" />
<constructor-arg name="baseUrl" value="http://www.zandeapp.com" />
</bean>
<bean id="shopBuyerService" class="com.b2c.myapp.sdk.service.ShopBuyerService"
factory-bean="myAppClient" factory-method="getShopBuyerService" />
<bean id="buyerInfoService" class="com.b2c.myapp.sdk.service.BuyerInfoService"
factory-bean="myAppClient" factory-method="getBuyerInfoService" />
<bean id="sellerInfoService" class="com.b2c.myapp.sdk.service.SellerInfoService"
factory-bean="myAppClient" factory-method="getSellerInfoService" />
<bean id="shopInfoService" class="com.b2c.myapp.sdk.service.ShopInfoService"
factory-bean="myAppClient" factory-method="getShopInfoService" />
<bean id="fundTradeService" class="com.b2c.myapp.sdk.service.FundTradeService"
factory-bean="myAppClient" factory-method="getFundTradeService" />
<bean id="websiteClient" class="com.diligrp.website.web.interfaces.WebsiteClient">
<constructor-arg name="token" value="${manweb.token}" />
<constructor-arg name="baseUrl" value="${manweb.baseUrl}" />
</bean>
<bean id="sysConfigService"
class="com.diligrp.website.web.interfaces.service.SysConfigService"
factory-bean="websiteClient" factory-method="getSysConfigService" />
<bean id="constant" class="com.b2c.orders.commons.constant.Constant">
<property name="domain" value="${orders.domain}" />
<property name="orderTakenTimeoutCallUrlKey" value="${orders.takenTimeoutCallUrlKey}" />
<property name="orderPaymentTimeoutCallUrlKey" value="${orders.paymentTimeoutCallUrlKey}" />
<property name="orderTakenTimeoutSecondsKey" value="${orders.takenTimeoutSecondsKey}" />
<property name="orderPaymentTimeoutSecondsKey" value="${orders.paymentTimeoutSecondsKey}" />
<property name="orderConfirmTimeoutCallUrlKey" value="${orders.confirmTimeoutCallUrlKey}" />
<property name="orderConfirmTimeoutSecondsKey" value="${orders.confirmTimeoutSecondsKey}" />
</bean>
<bean id="cacheManager" class="com.b2c.orders.commons.cache.impl.CacheManagerBean">
<constructor-arg name="jedisUtils" ref="jedisUtils" />
</bean>
<bean id="systemConfigRPCService"
class="com.b2c.orders.service.rpc.impl.SystemConfigRPCServiceBean">
<constructor-arg name="sysConfigService" ref="sysConfigService" />
<constructor-arg name="constant" ref="constant" />
<constructor-arg name="cacheManager" ref="cacheManager" />
</bean>
</beans>