public class StdEnvVarLoader extends MapLoader implements StandardLoader
System.getenv().
Those environmental values are provided by the host environment (the OS)
as a static snapshot to the JVM at startup as a String-to-String map.
The underlying OS environment variables can change, however, the JVM is
unaware of it. Similarly, AndHow property values never change once loaded.
FlgProp properties (true/false flags), the StdEnvVarLoader
will set the Property's value to true if a matching environment variable is
found, even if the value of the property is empty.
StandardLoader's, this loader is intended to be auto-created
by AndHow. The set of standard loaders and their order can bet set
via the AndHowConfiguration.setStandardLoaders() methods.
Other loaders which don't implement the StandardLoader interface can
be inserted into the load order via the
AndHowConfiguration.insertLoaderBefore/After().map, unknownPropertyAProblem| Constructor and Description |
|---|
StdEnvVarLoader()
There is no reason to use the constructor in production application code
because AndHow creates a single instance on demand at runtime.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLoaderType()
The type of the loader, such as JNDI, PropertyFile, SystemProperty,
etc..
|
Map<?,?> |
getMap() |
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.
|
getLoaderDialect, isUnknownPropertyAProblem, load, releaseResources, setMap, setUnknownPropertyAProblemattemptToAdd, attemptToAdd, attemptToAdd, attemptToAddIfNotDuplicate, createValue, findDuplicateProperty, getClassConfig, getConfigSamplePrinter, getInstanceConfig, mapNametoPropertyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClassConfig, getConfigSamplePrinter, getInstanceConfig, getLoaderDialect, load, releaseResourcespublic StdEnvVarLoader()
public String getSpecificLoadDescription()
LoadergetSpecificLoadDescription in interface LoadergetSpecificLoadDescription in class MapLoaderpublic boolean isTrimmingRequiredForStringValues()
LoaderisTrimmingRequiredForStringValues in interface LoaderisTrimmingRequiredForStringValues in class MapLoaderpublic String getLoaderType()
LoadergetLoaderType in interface LoadergetLoaderType in class MapLoaderCopyright © 2021. All rights reserved.