org.springframework.boot.context.config

Interface ConfigDataLocationResolver<R extends ConfigDataResource>

  • Type Parameters:
    R - the location type
    All Known Implementing Classes:
    ConfigTreeConfigDataLocationResolver, StandardConfigDataLocationResolver


    public interface ConfigDataLocationResolver<R extends ConfigDataResource>
    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:
    • Log - 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.

    Since:
    2.4.0