moved to version 2.0.1 with elimination of dependency on GCUBEScopeManager in response to ticket #485
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/branches/common/common-gcore-clients/2.0@60594 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
eef9cbbd01
commit
a44307714c
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
|||
<groupId>org.gcube.core</groupId>
|
||||
<artifactId>common-gcore-clients</artifactId>
|
||||
|
||||
<version>2.0.0-SNAPSHOT</version>
|
||||
<version>2.0.1-SNAPSHOT</version>
|
||||
<name>GCore Clients</name>
|
||||
|
||||
<description>A framework for client APIs that invoke GCore services</description>
|
||||
|
|
|
@ -7,7 +7,8 @@ import org.apache.axis.message.addressing.EndpointReferenceType;
|
|||
import org.gcube.common.clients.config.ProxyConfig;
|
||||
import org.gcube.common.clients.delegates.ProxyDelegate;
|
||||
import org.gcube.common.core.contexts.GCUBERemotePortTypeContext;
|
||||
import org.gcube.common.core.scope.GCUBEScopeManager;
|
||||
import org.gcube.common.core.scope.GCUBEScope;
|
||||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
|
@ -72,7 +73,7 @@ public final class PluginAdapter<S,P> implements Plugin<S,P> {
|
|||
//add scope
|
||||
if (stub instanceof Remote) {
|
||||
try {
|
||||
remote = GCUBERemotePortTypeContext.getProxy((Remote) stub,GCUBEScopeManager.DEFAULT);
|
||||
remote = GCUBERemotePortTypeContext.getProxy((Remote) stub,GCUBEScope.getScope(ScopeProvider.instance.get()));
|
||||
|
||||
}
|
||||
catch(Exception e) {
|
||||
|
|
|
@ -8,7 +8,8 @@ import org.gcube.common.core.contexts.GHNContext;
|
|||
import org.gcube.common.core.informationsystem.client.AtomicCondition;
|
||||
import org.gcube.common.core.informationsystem.client.ISClient;
|
||||
import org.gcube.common.core.informationsystem.client.ISTemplateQuery;
|
||||
import org.gcube.common.core.scope.GCUBEScopeManager;
|
||||
import org.gcube.common.core.scope.GCUBEScope;
|
||||
import org.gcube.common.scope.api.ScopeProvider;
|
||||
|
||||
/**
|
||||
* Default {@link ISFacade} implementation.
|
||||
|
@ -44,7 +45,7 @@ public class DefaultISFacade implements ISFacade {
|
|||
|
||||
//execte query
|
||||
try {
|
||||
return client.execute(isquery, GCUBEScopeManager.DEFAULT.getScope());
|
||||
return client.execute(isquery,GCUBEScope.getScope(ScopeProvider.instance.get()));
|
||||
}
|
||||
catch(RuntimeException e) {
|
||||
throw e;
|
||||
|
|
Loading…
Reference in New Issue