Class AbstractAwsConfigDataLocationResolver<T extends org.springframework.boot.context.config.ConfigDataResource>
java.lang.Object
io.awspring.cloud.autoconfigure.config.AbstractAwsConfigDataLocationResolver<T>
- Type Parameters:
T
- - the location type
- All Implemented Interfaces:
org.springframework.boot.context.config.ConfigDataLocationResolver<T>
- Direct Known Subclasses:
ParameterStoreConfigDataLocationResolver
,SecretsManagerConfigDataLocationResolver
public abstract class AbstractAwsConfigDataLocationResolver<T extends org.springframework.boot.context.config.ConfigDataResource>
extends Object
implements org.springframework.boot.context.config.ConfigDataLocationResolver<T>
Base class for AWS specific
ConfigDataLocationResolver
s.- Since:
- 3.0
- Author:
- Maciej Walkowiak, Eduan Bekker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <T extends software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<?,
?>>
Tconfigure
(T builder, AwsClientProperties properties, org.springframework.boot.BootstrapContext context) getCustomContexts
(String keys) protected abstract String
boolean
isResolvable
(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, org.springframework.boot.context.config.ConfigDataLocation location) protected AwsProperties
loadAwsProperties
(org.springframework.boot.context.properties.bind.Binder binder) protected CredentialsProperties
loadCredentialsProperties
(org.springframework.boot.context.properties.bind.Binder binder) protected RegionProperties
loadRegionProperties
(org.springframework.boot.context.properties.bind.Binder binder) protected <C> void
registerAndPromoteBean
(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, Class<C> type, org.springframework.boot.BootstrapRegistry.InstanceSupplier<C> supplier) protected <C> void
registerBean
(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, Class<C> type, C instance) protected <C> void
registerBean
(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, Class<C> type, org.springframework.boot.BootstrapRegistry.InstanceSupplier<C> supplier) 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
-
Constructor Details
-
AbstractAwsConfigDataLocationResolver
public AbstractAwsConfigDataLocationResolver()
-
-
Method Details
-
getPrefix
-
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<T extends org.springframework.boot.context.config.ConfigDataResource>
-
resolve
public List<T> 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<T extends org.springframework.boot.context.config.ConfigDataResource>
- Throws:
org.springframework.boot.context.config.ConfigDataLocationNotFoundException
org.springframework.boot.context.config.ConfigDataResourceNotFoundException
-
registerAndPromoteBean
protected <C> void registerAndPromoteBean(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, Class<C> type, org.springframework.boot.BootstrapRegistry.InstanceSupplier<C> supplier) -
registerBean
protected <C> void registerBean(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, Class<C> type, C instance) -
registerBean
protected <C> void registerBean(org.springframework.boot.context.config.ConfigDataLocationResolverContext context, Class<C> type, org.springframework.boot.BootstrapRegistry.InstanceSupplier<C> supplier) -
loadCredentialsProperties
protected CredentialsProperties loadCredentialsProperties(org.springframework.boot.context.properties.bind.Binder binder) -
loadRegionProperties
protected RegionProperties loadRegionProperties(org.springframework.boot.context.properties.bind.Binder binder) -
loadAwsProperties
protected AwsProperties loadAwsProperties(org.springframework.boot.context.properties.bind.Binder binder) -
getCustomContexts
-
configure
protected <T extends software.amazon.awssdk.awscore.client.builder.AwsClientBuilder<?,?>> T configure(T builder, AwsClientProperties properties, org.springframework.boot.BootstrapContext context)
-