public class MapLoader extends BaseMapLoader
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,String> |
map |
unknownPropertyAProblem| Constructor and Description |
|---|
MapLoader() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getMap() |
LoaderValues |
load(PropertyConfigurationInternal runtimeDef,
LoaderEnvironment environment,
ValidatedValuesWithContext existingValues)
Builds up a list of LoaderValues by loading property values from a configuration source.
|
void |
releaseResources()
Release any resources held by this loader.
|
void |
setMap(Map<String,String> map) |
getLoaderDialect, getLoaderType, getSpecificLoadDescription, isFlaggable, isTrimmingRequiredForStringValues, isUnknownPropertyAProblem, load, setUnknownPropertyAProblemattemptToAdd, attemptToAdd, attemptToAdd, attemptToAddIfNotDuplicate, createValue, findDuplicateProperty, getClassConfig, getConfigSamplePrinter, getInstanceConfig, mapNametoPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassConfig, getConfigSamplePrinter, getInstanceConfigpublic LoaderValues load(PropertyConfigurationInternal runtimeDef, LoaderEnvironment environment, ValidatedValuesWithContext existingValues)
LoaderLoaders find and load values and associate them with the correct Property. If there is a problem while doing that, they register one or more LoaderProblems in the returned LoaderValues.
Validation of Property values is not Loader's responsibility and will be handled outside this method.
runtimeDef - The definition of all known Properties and naming metadata.environment - The environment (System Props, Env vars, fixed values) as
known to the Loader.existingValues - The values already set by prior loaders, which may configure
the behavior of this loader.public void releaseResources()
LoaderreleaseResources in interface LoaderreleaseResources in class BaseLoaderCopyright © 2022. All rights reserved.