Added the possibility to create a client instance by context
This commit is contained in:
parent
59f4abda63
commit
a0dd4422b0
|
@ -18,4 +18,10 @@ public class ResourceRegistryClientFactory {
|
|||
return new ResourceRegistryClientImpl(address);
|
||||
}
|
||||
|
||||
public static ResourceRegistryClient 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 ResourceRegistryClientImpl(address);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue