public class StdJndiLoader extends BaseLoader implements LookupLoader, StandardLoader
| Modifier and Type | Class and Description |
|---|---|
static interface |
StdJndiLoader.CONFIG |
| Constructor and Description |
|---|
StdJndiLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
buildJndiNames(StaticPropertyConfigurationInternal appConfigDef,
List<String> roots,
Property prop)
Builds a complete list of complete JNDI names to search for a parameter value.
|
protected List<String> |
buildJndiRoots(ValidatedValues values)
Combines the values of STANDARD_JNDI_ROOTS and ADDED_JNDI_ROOTS into one list of jndi root contexts to search.
|
Class<?> |
getClassConfig()
Returns a PropertyGroup used to globally configure a class of Loader.
|
SamplePrinter |
getConfigSamplePrinter()
Returns a ConfigSamplePrinter, which can be used to print a configuration
sample for this Loader.
|
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 |
isFailedEnvironmentAProblem()
If true, then a failure to initiate or connect to the needed environment
or external system will result in a failure and it will register a
'Propblem' during load which will cause application initiation to stop.
|
boolean |
isTrimmingRequiredForStringValues()
If true, values for string properties are trimmed by the Trimmer of
the property they are associated with.
|
LoaderValues |
load(StaticPropertyConfigurationInternal appConfigDef,
ValidatedValuesWithContext existingValues)
Builds up a list of LoaderValues by loading property values from a
configuration source.
|
void |
setFailedEnvironmentAProblem(boolean isAProblem)
If true, failing to initialize the environment needed to lookup values is
considered a problem/error.
|
protected List<String> |
split(String rootStr)
Spits a comma separate list of JNDI roots into individual root strings.
|
attemptToAdd, attemptToAdd, createValue, findDuplicateProperty, getInstanceConfig, releaseResourcesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstanceConfig, releaseResourcespublic LoaderValues load(StaticPropertyConfigurationInternal appConfigDef, ValidatedValuesWithContext existingValues)
Loaderpublic boolean isTrimmingRequiredForStringValues()
LoaderisTrimmingRequiredForStringValues in interface Loaderpublic String getSpecificLoadDescription()
LoadergetSpecificLoadDescription in interface Loaderpublic Class<?> getClassConfig()
LoadergetClassConfig in interface LoadergetClassConfig in class BaseLoaderpublic SamplePrinter getConfigSamplePrinter()
LoadergetConfigSamplePrinter in interface LoadergetConfigSamplePrinter in class BaseLoaderprotected List<String> buildJndiRoots(ValidatedValues values)
values - The configuration state.protected List<String> buildJndiNames(StaticPropertyConfigurationInternal appConfigDef, List<String> roots, Property prop)
appConfigDef - roots - prop - protected List<String> split(String rootStr)
rootStr - public String getLoaderType()
LoadergetLoaderType in interface Loaderpublic String getLoaderDialect()
LoadergetLoaderDialect in interface Loaderpublic void setFailedEnvironmentAProblem(boolean isAProblem)
LookupLoadersetFailedEnvironmentAProblem in interface LookupLoaderpublic boolean isFailedEnvironmentAProblem()
LookupLoaderisFailedEnvironmentAProblem in interface LookupLoaderCopyright © 2017. All rights reserved.