L - the location typepublic interface ConfigDataLoader<L extends ConfigDataLocation>
ConfigData instances from a
location. Implementations should be added as a
spring.factories entries. The following constructor parameter types are
supported:
Log - if the resolver needs deferred loggingMultiple loaders cannot claim the same location.
| Modifier and Type | Method and Description |
|---|---|
default boolean |
isLoadable(L location)
Returns if the specified location can be loaded by this instance.
|
ConfigData |
load(L location)
Load
ConfigData for the given location. |
default boolean isLoadable(L location)
location - the location to check.ConfigData load(L location) throws IOException
ConfigData for the given location.location - the location to loadnull if the location should be skippedIOException - on IO error