public final class InterpolatorSpecification extends Object
A simple value class defining a ConfigurationInterpolator.
Objects of this class can be used for creating new ConfigurationInterpolator instances; they contain all
required properties. It is either possible to set a fully initialized ConfigurationInterpolator directly
which can be used as is. Alternatively, some or all properties of an instance to be newly created can be set. These
properties include
Lookup objects associated with a specific prefixLookup objects (without a prefix)ConfigurationInterpolator
When setting up a configuration it is possible to define the ConfigurationInterpolator in terms of this
class. The configuration will then either use the ConfigurationInterpolator instance explicitly defined in
the InterpolatorSpecification instance or create a new one.
Instances are not created directly, but using the nested Builder class. They are then immutable.
| Modifier and Type | Class and Description |
|---|---|
static class |
InterpolatorSpecification.Builder
A builder class for creating instances of
InterpolatorSpecification. |
| Modifier and Type | Method and Description |
|---|---|
Collection<Lookup> |
getDefaultLookups()
Returns a collection with the default lookups.
|
ConfigurationInterpolator |
getInterpolator()
Returns the
ConfigurationInterpolator instance to be used directly. |
ConfigurationInterpolator |
getParentInterpolator()
Returns the parent
ConfigurationInterpolator object. |
Map<String,Lookup> |
getPrefixLookups()
Returns a map with prefix lookups.
|
Function<Object,String> |
getStringConverter()
Returns the function used to convert interpolated values to strings or
null
if the default conversion function is to be used. |
public ConfigurationInterpolator getInterpolator()
ConfigurationInterpolator instance to be used directly.ConfigurationInterpolator (can be null)public ConfigurationInterpolator getParentInterpolator()
ConfigurationInterpolator object.ConfigurationInterpolator (can be null)public Map<String,Lookup> getPrefixLookups()
Lookup objects.ConfigurationInterpolator instance (never null)public Collection<Lookup> getDefaultLookups()
ConfigurationInterpolator instance (never null)public Function<Object,String> getStringConverter()
null
if the default conversion function is to be used.null if
the default conversion function is to be usedCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.