R - the resource typepublic interface ConfigDataLoader<R extends ConfigDataResource>
ConfigData for a given
 ConfigDataResource. Implementations should be added as spring.factories
 entries. The following constructor parameter types are supported:
 Log or DeferredLogFactory - if the loader needs deferred
 loggingConfigurableBootstrapContext - 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).Multiple loaders cannot claim the same resource.
| Modifier and Type | Method and Description | 
|---|---|
| default boolean | isLoadable(ConfigDataLoaderContext context,
          R resource)Returns if the specified resource can be loaded by this instance. | 
| ConfigData | load(ConfigDataLoaderContext context,
    R resource)Load  ConfigDatafor the given resource. | 
default boolean isLoadable(ConfigDataLoaderContext context, R resource)
context - the loader contextresource - the resource to check.ConfigData load(ConfigDataLoaderContext context, R resource) throws IOException, ConfigDataResourceNotFoundException
ConfigData for the given resource.context - the loader contextresource - the resource to loadnull if the location should be skippedIOException - on IO errorConfigDataResourceNotFoundException - if the resource cannot be found