load

abstract fun load(name: String, resource: Resource): List<PropertySource<out Any>>

Load the resource into one or more property sources. Implementations may either return a list containing a single source, or in the case of a multi-document format such as yaml a source for each document in the resource.

Return

a list property sources

Parameters

name

the root name of the property source. If multiple documents are loadedan additional suffix should be added to the name for each source loaded.

resource

the resource to load

Throws

if the source cannot be loaded