Class EnvironmentPropertyRestClientFactory

java.lang.Object
com.peterphi.std.guice.restclient.EnvironmentPropertyRestClientFactory
All Implemented Interfaces:
RestClientFactory

public class EnvironmentPropertyRestClientFactory extends Object implements RestClientFactory
  • Field Details

    • proxyFactory

      @Inject protected JAXRSProxyClientFactory proxyFactory
    • injector

      @Inject protected com.google.inject.Injector injector
  • Constructor Details

    • EnvironmentPropertyRestClientFactory

      public EnvironmentPropertyRestClientFactory()
  • Method Details

    • getClient

      public <T> T getClient(Class<T> iface)
      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, use getClient(iface, name)
      Specified by:
      getClient in interface RestClientFactory
      Returns:
    • getClient

      public <T> T getClient(Class<T> iface, String name)
      Description copied from interface: RestClientFactory
      Create or retrieve a client for the service interface, with the underlying REST service identified by name
      Specified by:
      getClient in interface RestClientFactory
      name - the service name
      Returns: