Class SecretManagerPropertySourceLocator
java.lang.Object
com.google.cloud.spring.secretmanager.SecretManagerPropertySourceLocator
- All Implemented Interfaces:
org.springframework.cloud.bootstrap.config.PropertySourceLocator
public class SecretManagerPropertySourceLocator
extends Object
implements org.springframework.cloud.bootstrap.config.PropertySourceLocator
Implementation of
PropertySourceLocator
which provides GCP Secret Manager as a property
source.- Since:
- 1.2.2
-
Constructor Summary
ConstructorDescriptionSecretManagerPropertySourceLocator
(SecretManagerTemplate template, GcpProjectIdProvider projectIdProvider) -
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
-
SecretManagerPropertySourceLocator
public SecretManagerPropertySourceLocator(SecretManagerTemplate template, GcpProjectIdProvider projectIdProvider)
-
-
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
-