ConfigDataLoader

Strategy class that can be used to load ConfigData for a given ConfigDataResource. Implementations should be added as spring.factories entries. The following constructor parameter types are supported:

Multiple loaders cannot claim the same resource.

Author

Phillip Webb

Madhura Bhave

Since

2.4.0

Parameters

<R>

the resource type

Inheritors

Functions

Link copied to clipboard
open fun isLoadable(context: ConfigDataLoaderContext, resource: R): Boolean
Returns if the specified resource can be loaded by this instance.
Link copied to clipboard
abstract fun load(context: ConfigDataLoaderContext, resource: R): ConfigData
Load ConfigData for the given resource.