load

abstract fun load(context: ConfigDataLoaderContext, resource: R): ConfigData

Load ConfigData for the given resource.

Return

the loaded config data or null if the location should be skipped

Parameters

context

the loader context

resource

the resource to load

Throws

on IO error

if the resource cannot be found