Added the possibility to create a client instance by context
This commit is contained in:
parent
c529b03d97
commit
277f9603ce
|
@ -18,4 +18,10 @@ public class ResourceRegistryContextClientFactory {
|
||||||
return new ResourceRegistryContextClientImpl(address);
|
return new ResourceRegistryContextClientImpl(address);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static ResourceRegistryContextClient create(String context) {
|
||||||
|
String address = String.format("%s/%s", ServiceInstance.getServiceURL(context),Constants.SERVICE_NAME);
|
||||||
|
logger.trace("The {} will be contacted at {}", Constants.SERVICE_NAME, address);
|
||||||
|
return new ResourceRegistryContextClientImpl(address);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue