Class EnvironmentPropertyRestClientFactory
java.lang.Object
com.peterphi.std.guice.restclient.EnvironmentPropertyRestClientFactory
- All Implemented Interfaces:
RestClientFactory
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.google.inject.Injector
protected JAXRSProxyClientFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
Create or retrieve a client for the service interface provided
This method only works where a single service for this interface has been configured.<T> T
Create or retrieve a client for the service interface, with the underlying REST service identified byname
-
Field Details
-
proxyFactory
-
injector
@Inject protected com.google.inject.Injector injector
-
-
Constructor Details
-
EnvironmentPropertyRestClientFactory
public EnvironmentPropertyRestClientFactory()
-
-
Method Details
-
getClient
Description copied from interface:RestClientFactory
Create or retrieve a client for the service interface provided
This method only works where a single service for this interface has been configured. For more complex situations, usegetClient(iface, name)
- Specified by:
getClient
in interfaceRestClientFactory
- Returns:
-
getClient
Description copied from interface:RestClientFactory
Create or retrieve a client for the service interface, with the underlying REST service identified byname
- Specified by:
getClient
in interfaceRestClientFactory
name
- the service name- Returns:
-