public class JndiLoader extends BaseLoader
| Modifier and Type | Class and Description |
|---|---|
static interface |
JndiLoader.CONFIG |
| Constructor and Description |
|---|
JndiLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
buildJndiNames(ConstructionDefinition appConfigDef,
List<String> roots,
Property prop)
Builds a complete list of complete JNDI names to search for a parameter value.
|
protected List<String> |
buildJndiRoots(ValueMap values)
Combines the values of STANDARD_JNDI_ROOTS and ADDED_JNDI_ROOTS into one list of jndi root contexts to search.
|
Class<? extends BasePropertyGroup> |
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 |
isTrimmingRequiredForStringValues()
If true, values for string properties are trimmed by the Trimmer of
the property they are associated with.
|
boolean |
isUnrecognizedPropertyNamesConsideredAProblem()
If true, an unrecognized name is considered a problem that will stop
application startup.
|
LoaderValues |
load(ConstructionDefinition appConfigDef,
ValueMapWithContext existingValues)
Builds up a list of LoaderValues by loading property values from a configuration
source.
|
protected List<String> |
split(String rootStr)
Spits a comma separate list of JNDI roots into individual root strings.
|
attemptToAdd, attemptToAdd, createValue, findDuplicateProperty, getInstanceConfigpublic LoaderValues load(ConstructionDefinition appConfigDef, ValueMapWithContext existingValues)
Loaderpublic boolean isTrimmingRequiredForStringValues()
Loaderpublic boolean isUnrecognizedPropertyNamesConsideredAProblem()
Loaderpublic String getSpecificLoadDescription()
Loaderpublic Class<? extends BasePropertyGroup> getClassConfig()
LoadergetClassConfig in interface LoadergetClassConfig in class BaseLoaderpublic SamplePrinter getConfigSamplePrinter()
LoadergetConfigSamplePrinter in interface LoadergetConfigSamplePrinter in class BaseLoaderprotected List<String> buildJndiRoots(ValueMap values)
values - The configuration state.protected List<String> buildJndiNames(ConstructionDefinition appConfigDef, List<String> roots, Property prop)
appConfigDef - roots - prop - protected List<String> split(String rootStr)
rootStr - public String getLoaderType()
Loaderpublic String getLoaderDialect()
LoaderCopyright © 2017. All rights reserved.