public class KeyValuePairLoader extends BaseLoader implements ReadLoader
| Modifier and Type | Field and Description |
|---|---|
static String |
KVP_DELIMITER
The default delimiter between a key and a value.
|
protected boolean |
unknownPropertyAProblem |
| Constructor and Description |
|---|
KeyValuePairLoader() |
| Modifier and Type | Method and Description |
|---|---|
String |
getLoaderDialect()
The type dialect of the loader.
|
String |
getLoaderType()
The type of the loader, such as JNDI, PropertyFile, SystemProperty,
etc..
|
String |
getSpecificLoadDescription()
For this particular load, where was info loaded from?
This may vary from run to run based on config params.
|
boolean |
isTrimmingRequiredForStringValues()
If true, values for string properties are trimmed by the Trimmer of
the property they are associated with.
|
boolean |
isUnknownPropertyAProblem()
If true, an unrecognized name is considered a problem that will stop
application startup.
|
LoaderValues |
load(StaticPropertyConfiguration appConfigDef,
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 |
setKeyValuePairs(List<String> keyValuePairs)
Sets the list of string arguments, each string containing a key-value pair
or just a key for flag type values.
|
void |
setKeyValuePairs(String... keyValuePairs)
Sets the list of string arguments, each string containing a key-value pair
or just a key for flag type values.
|
void |
setUnknownPropertyAProblem(boolean isAProblem)
If true, an unrecognized property name is considered a problem/error.
|
attemptToAdd, attemptToAdd, createValue, findDuplicateProperty, getClassConfig, getConfigSamplePrinter, getInstanceConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassConfig, getConfigSamplePrinter, getInstanceConfigprotected boolean unknownPropertyAProblem
public static final String KVP_DELIMITER
public void setKeyValuePairs(List<String> keyValuePairs)
keyValuePairs - public void setKeyValuePairs(String... keyValuePairs)
keyValuePairs - public LoaderValues load(StaticPropertyConfiguration appConfigDef, ValidatedValuesWithContext existingValues)
Loaderpublic String getSpecificLoadDescription()
LoadergetSpecificLoadDescription in interface Loaderpublic boolean isTrimmingRequiredForStringValues()
LoaderisTrimmingRequiredForStringValues in interface Loaderpublic String getLoaderType()
LoadergetLoaderType in interface Loaderpublic String getLoaderDialect()
LoadergetLoaderDialect in interface Loaderpublic void setUnknownPropertyAProblem(boolean isAProblem)
ReadLoadersetUnknownPropertyAProblem in interface ReadLoaderpublic boolean isUnknownPropertyAProblem()
ReadLoaderisUnknownPropertyAProblem in interface ReadLoaderpublic void releaseResources()
LoaderreleaseResources in interface LoaderreleaseResources in class BaseLoaderCopyright © 2017. All rights reserved.