Class DefaultParameterManagerClientFactory

java.lang.Object
com.google.cloud.spring.autoconfigure.parametermanager.DefaultParameterManagerClientFactory
All Implemented Interfaces:
ParameterManagerClientFactory

@Component public class DefaultParameterManagerClientFactory extends Object implements ParameterManagerClientFactory
A default implementation of the ParameterManagerClientFactory interface.

This factory provides a caching layer for ParameterManagerClient instances. Clients are created using the provided CredentialsProvider and a UserAgentHeaderProvider that adds the Spring Cloud GCP agent header to the client.

  • Method Details

    • getClient

      public com.google.cloud.parametermanager.v1.ParameterManagerClient getClient(@Nullable String location)
      Description copied from interface: ParameterManagerClientFactory
      Creates a Parameter Manager service client for the given location.
      Specified by:
      getClient in interface ParameterManagerClientFactory
      Parameters:
      location - the location to create a client for.
      Returns:
      a Parameter Manager service client.