Class GoogleParameterPropertySourceLocator

java.lang.Object
com.google.cloud.spring.autoconfigure.parameter.GoogleParameterPropertySourceLocator
All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator

public class GoogleParameterPropertySourceLocator extends Object implements org.springframework.cloud.bootstrap.config.PropertySourceLocator
Custom PropertySourceLocator for Google Cloud Parameter Manager API.
Since:
1.1
  • Constructor Details

    • GoogleParameterPropertySourceLocator

      public GoogleParameterPropertySourceLocator(GcpProjectIdProvider projectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpParameterProperties gcpParameterProperties, com.google.cloud.parametermanager.v1.ParameterManagerClient parameterManagerClient) throws IOException
      Throws:
      IOException
  • Method Details

    • locate

      public org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment environment)
      Specified by:
      locate in interface org.springframework.cloud.bootstrap.config.PropertySourceLocator
    • getProjectId

      public String getProjectId()
    • convertStringToMap

      public static Map<String,Object> convertStringToMap(String data)