Class StringLookupAdapter
java.lang.Object
org.apache.commons.configuration2.interpol.StringLookupAdapter
- All Implemented Interfaces:
Lookup
Wraps an Apache Commons Text
StringLookup
as an Apache Commons Configuration Lookup
.- Since:
- 2.4
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.apache.commons.text.lookup.StringLookup
The StringLookup delegate. -
Constructor Summary
ConstructorsConstructorDescriptionStringLookupAdapter
(org.apache.commons.text.lookup.StringLookup stringLookup) -
Method Summary
-
Field Details
-
stringLookup
private final org.apache.commons.text.lookup.StringLookup stringLookupThe StringLookup delegate.
-
-
Constructor Details
-
StringLookupAdapter
StringLookupAdapter(org.apache.commons.text.lookup.StringLookup stringLookup)
-
-
Method Details
-
lookup
Description copied from interface:Lookup
Looks up the value of the specified variable. This method is called byConfigurationInterpolator
with the variable name extracted from the expression to interpolate (i.e. the prefix name has already been removed). A concrete implementation has to return the value of this variable or null if the variable name is unknown.
-