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 Summary
ConstructorsConstructorDescriptionGoogleParameterPropertySourceLocator
(GcpProjectIdProvider projectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpParameterProperties gcpParameterProperties, com.google.cloud.parametermanager.v1.ParameterManagerClient parameterManagerClient) -
Method Summary
Modifier and TypeMethodDescriptionconvertStringToMap
(String data) org.springframework.core.env.PropertySource<?>
locate
(org.springframework.core.env.Environment environment) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.cloud.bootstrap.config.PropertySourceLocator
locateCollection
-
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 interfaceorg.springframework.cloud.bootstrap.config.PropertySourceLocator
-
getProjectId
-
convertStringToMap
-