ConfigDataLocationResolver
Strategy interface used to resolve locations into one or more resources. Implementations should be added as a spring.factories
entries. The following constructor parameter types are supported:
- DeferredLogFactory - if the resolver needs deferred logging
- Binder - if the resolver needs to obtain values from the initial Environment
- ResourceLoader - if the resolver needs a resource loader
- ConfigurableBootstrapContext - A bootstrap context that can be used to store objects that may be expensive to create, or need to be shared (BootstrapContext or BootstrapRegistry may also be used).
Resolvers may implement Ordered or use the @Order annotation. The first resolver that supports the given location will be used.
Author
Phillip Webb
Madhura Bhave
Since
2.4.0
Parameters
<R>
the location type
Inheritors
Functions
Link copied to clipboard
abstract fun isResolvable(context: ConfigDataLocationResolverContext, location: ConfigDataLocation): Boolean
Returns if the specified location address can be resolved by this resolver.
Link copied to clipboard
abstract fun resolve(context: ConfigDataLocationResolverContext, location: ConfigDataLocation): List<R>
Resolve a ConfigDataLocation into one or more ConfigDataResource instances.
Link copied to clipboard
open fun resolveProfileSpecific(context: ConfigDataLocationResolverContext, location: ConfigDataLocation, profiles: Profiles): List<R>
Resolve a ConfigDataLocation into one or more ConfigDataResource instances based on available profiles.