create With Default Template
fun createWithDefaultTemplate(context: BContext, objectMapper: ObjectMapper, folderName: String, extensions: List<String>, classLoader: ClassLoader = JacksonLocalizationMapReader::class.java.classLoader): JacksonLocalizationMapReader(source)
Constructs a JacksonLocalizationMapReader with the default LocalizationTemplateFunction.
The bundles are read using the folderName and extensions, in the specified classLoader, note that folders are not explored recursively.
Parameters
context
Main framework context
object Mapper
Object mapper with support for any data format (such as JSON, YAML and TOML)
folder Name
Path where the bundles can be found, cannot start with /
extensions
Extensions which the bundles can use
class Loader
Where to load the resources from, useful if the bundles are in a different named module
Throws
If folderName starts with a /
, or extensions is empty