Revision 49512
Added by Antonis Lempesis over 6 years ago
modules/uoa-clients/trunk/src/main/java/eu/dnetlib/clients/utils/ws/CompatibilityServiceLocatorFactory.java | ||
---|---|---|
108 | 108 |
locator.setClientFactory(clientFactory); |
109 | 109 |
locator.setServiceClass(serviceClass); |
110 | 110 |
locator.setServiceLocator(this.serviceLocator); |
111 |
locator.setTransportConfiguration(this.configuration); |
|
111 | 112 |
|
112 | 113 |
return locator; |
113 | 114 |
} |
modules/uoa-clients/trunk/src/main/java/eu/dnetlib/clients/utils/ws/CompatibilityServiceNameResolver.java | ||
---|---|---|
20 | 20 |
public String getName(Class<?> serviceInterface) { |
21 | 21 |
String serviceName = null; |
22 | 22 |
|
23 |
logger.debug("Looking for name of service " + serviceInterface.getName()); |
|
24 |
|
|
23 | 25 |
if (override.get(serviceInterface) != null) { |
24 | 26 |
serviceName = override.get(serviceInterface); |
25 | 27 |
} else { |
modules/uoa-clients/trunk/src/main/java/eu/dnetlib/clients/utils/ws/CompatibilityServiceLocator.java | ||
---|---|---|
48 | 48 |
try { |
49 | 49 |
Class<? extends BaseService> endpointClass = (Class<? extends BaseService>) transportConfiguration.getEndpointClass(serviceClass); |
50 | 50 |
|
51 |
Object endpoint = serviceLocator.getService(ISStoreService.class);
|
|
51 |
Object endpoint = serviceLocator.getService(endpointClass);
|
|
52 | 52 |
|
53 | 53 |
logger.debug("Found service endpoint of type: " |
54 | 54 |
+ endpoint.getClass().getName()); |
... | ... | |
80 | 80 |
public void setClientFactory(ServiceClientFactory<S> clientFactory) { |
81 | 81 |
this.clientFactory = clientFactory; |
82 | 82 |
} |
83 |
|
|
84 |
public TransportConfiguration getTransportConfiguration() { |
|
85 |
return transportConfiguration; |
|
86 |
} |
|
87 |
|
|
88 |
public void setTransportConfiguration(TransportConfiguration transportConfiguration) { |
|
89 |
this.transportConfiguration = transportConfiguration; |
|
90 |
} |
|
83 | 91 |
} |
modules/uoa-clients/trunk/src/main/resources/eu/dnetlib/clients/ws/springContext-locatorFactory.xml | ||
---|---|---|
17 | 17 |
<property name="serviceResolver" ref="cnr.serviceResolver" /> |
18 | 18 |
<property name="configuration" ref="transportConfiguration" /> |
19 | 19 |
<property name="endpointResolver" ref="endpointResolver" /> |
20 |
<property name="serviceLocator" ref="cnr.uniqueServiceLocator" /> |
|
20 | 21 |
</bean> |
21 | 22 |
|
22 | 23 |
<bean id="cnr.uniqueServiceLocator" class="eu.dnetlib.enabling.locators.DefaultUniqueServiceLocator"> |
Also available in: Unified diff
finished transition to dnet45