Class GoogleConfigPropertySourceLocator
java.lang.Object
com.google.cloud.spring.autoconfigure.config.GoogleConfigPropertySourceLocator
- All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator
public class GoogleConfigPropertySourceLocator
extends Object
implements org.springframework.cloud.bootstrap.config.PropertySourceLocator
Custom
PropertySourceLocator
for Google Cloud Runtime Configurator API.- Since:
- 1.1
-
Constructor Summary
ConstructorDescriptionGoogleConfigPropertySourceLocator
(GcpProjectIdProvider projectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpConfigProperties gcpConfigProperties) -
Method Summary
Modifier and TypeMethodDescriptionorg.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
-
GoogleConfigPropertySourceLocator
public GoogleConfigPropertySourceLocator(GcpProjectIdProvider projectIdProvider, com.google.api.gax.core.CredentialsProvider credentialsProvider, GcpConfigProperties gcpConfigProperties) 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
-