Class SecretManagerConfigDataLocationResolver
java.lang.Object
com.google.cloud.spring.autoconfigure.secretmanager.SecretManagerConfigDataLocationResolver
- All Implemented Interfaces:
org.springframework.boot.context.config.ConfigDataLocationResolver<SecretManagerConfigDataResource>
public class SecretManagerConfigDataLocationResolver
extends Object
implements org.springframework.boot.context.config.ConfigDataLocationResolver<SecretManagerConfigDataResource>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isResolvable
(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location) resolve
(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.context.config.ConfigDataLocationResolver
resolveProfileSpecific
-
Field Details
-
PREFIX
ConfigData Prefix for Google Cloud Secret Manager.- See Also:
-
-
Constructor Details
-
SecretManagerConfigDataLocationResolver
public SecretManagerConfigDataLocationResolver()
-
-
Method Details
-
isResolvable
public boolean isResolvable(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location) - Specified by:
isResolvable
in interfaceorg.springframework.boot.context.config.ConfigDataLocationResolver<SecretManagerConfigDataResource>
-
resolve
public List<SecretManagerConfigDataResource> resolve(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location) throws org.springframework.boot.context.config.ConfigDataLocationNotFoundException, org.springframework.boot.context.config.ConfigDataResourceNotFoundException - Specified by:
resolve
in interfaceorg.springframework.boot.context.config.ConfigDataLocationResolver<SecretManagerConfigDataResource>
- Throws:
org.springframework.boot.context.config.ConfigDataLocationNotFoundException
org.springframework.boot.context.config.ConfigDataResourceNotFoundException
-