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