| Package | Description |
|---|---|
| org.apache.commons.configuration2 |
The Configuration main package.
|
| org.apache.commons.configuration2.builder |
This package contains the implementations of configuration builder
classes used to create new
Configuration objects. |
| org.apache.commons.configuration2.interpol |
A package with helper classes used for interpolation (variable substitution).
|
| Modifier and Type | Class | Description |
|---|---|---|
class |
ConfigurationLookup |
A specialized implementation of the
Lookup interface which uses a
Configuration object to resolve variables. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
AbstractConfiguration.installInterpolator(java.util.Map<java.lang.String,? extends Lookup> prefixLookups,
java.util.Collection<? extends Lookup> defLookups) |
Creates and installs a new
ConfigurationInterpolator for this
Configuration based on the passed in arguments. |
void |
AbstractConfiguration.installInterpolator(java.util.Map<java.lang.String,? extends Lookup> prefixLookups,
java.util.Collection<? extends Lookup> defLookups) |
Creates and installs a new
ConfigurationInterpolator for this
Configuration based on the passed in arguments. |
void |
Configuration.installInterpolator(java.util.Map<java.lang.String,? extends Lookup> prefixLookups,
java.util.Collection<? extends Lookup> defLookups) |
Creates and installs a new
ConfigurationInterpolator for this
Configuration based on the passed in arguments. |
void |
Configuration.installInterpolator(java.util.Map<java.lang.String,? extends Lookup> prefixLookups,
java.util.Collection<? extends Lookup> defLookups) |
Creates and installs a new
ConfigurationInterpolator for this
Configuration based on the passed in arguments. |
void |
AbstractConfiguration.setDefaultLookups(java.util.Collection<? extends Lookup> lookups) |
Adds all
Lookup objects in the given collection as default
lookups (i.e. |
void |
AbstractConfiguration.setPrefixLookups(java.util.Map<java.lang.String,? extends Lookup> lookups) |
Registers all
Lookup objects in the given map at the current
ConfigurationInterpolator of this configuration. |
| Modifier and Type | Method | Description |
|---|---|---|
BasicBuilderParameters |
BasicBuilderParameters.setDefaultLookups(java.util.Collection<? extends Lookup> lookups) |
Adds additional default
Lookup objects (i.e. |
T |
BasicBuilderProperties.setDefaultLookups(java.util.Collection<? extends Lookup> lookups) |
Adds additional default
Lookup objects (i.e. |
BasicBuilderParameters |
BasicBuilderParameters.setPrefixLookups(java.util.Map<java.lang.String,? extends Lookup> lookups) |
Sets additional
Lookup objects for specific prefixes for this
configuration object. |
T |
BasicBuilderProperties.setPrefixLookups(java.util.Map<java.lang.String,? extends Lookup> lookups) |
Sets additional
Lookup objects for specific prefixes for this
configuration object. |
| Modifier and Type | Class | Description |
|---|---|---|
class |
ConstantLookup |
A specialized lookup implementation that allows access to constant fields of
classes.
|
class |
DummyLookup |
A simple dummy
Lookup implementation. |
class |
EnvironmentLookup |
A specialized lookup implementation that allows access to environment
variables.
|
class |
ExprLookup |
Lookup that allows expressions to be evaluated.
|
class |
SystemPropertiesLookup |
A specialized implementation of the
Lookup interface that allows
access to system properties. |
| Modifier and Type | Method | Description |
|---|---|---|
protected Lookup |
ConfigurationInterpolator.fetchLookupForPrefix(java.lang.String prefix) |
Obtains the lookup object for the specified prefix.
|
Lookup |
DefaultLookups.getLookup() |
Returns the standard
Lookup instance of this kind. |
static Lookup |
ConfigurationInterpolator.nullSafeLookup(Lookup lookup) |
Utility method for obtaining a
Lookup object in a safe way. |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<Lookup> |
ConfigurationInterpolator.getDefaultLookups() |
Returns a collection with the default
Lookup objects
added to this ConfigurationInterpolator. |
java.util.Collection<Lookup> |
InterpolatorSpecification.getDefaultLookups() |
Returns a collection with the default lookups.
|
static java.util.Map<java.lang.String,Lookup> |
ConfigurationInterpolator.getDefaultPrefixLookups() |
Returns a map containing the default prefix lookups.
|
java.util.Map<java.lang.String,Lookup> |
ConfigurationInterpolator.getLookups() |
Returns a map with the currently registered
Lookup objects and
their prefixes. |
java.util.Map<java.lang.String,Lookup> |
InterpolatorSpecification.getPrefixLookups() |
Returns a map with prefix lookups.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
ConfigurationInterpolator.addDefaultLookup(Lookup defaultLookup) |
Adds a default
Lookup object. |
static Lookup |
ConfigurationInterpolator.nullSafeLookup(Lookup lookup) |
Utility method for obtaining a
Lookup object in a safe way. |
void |
ConfigurationInterpolator.registerLookup(java.lang.String prefix,
Lookup lookup) |
Registers the given
Lookup object for the specified prefix at
this instance. |
boolean |
ConfigurationInterpolator.removeDefaultLookup(Lookup lookup) |
Removes the specified
Lookup object from the list of default
Lookups. |
InterpolatorSpecification.Builder |
InterpolatorSpecification.Builder.withDefaultLookup(Lookup lookup) |
Adds the given
Lookup object to the list of default lookups. |
InterpolatorSpecification.Builder |
InterpolatorSpecification.Builder.withPrefixLookup(java.lang.String prefix,
Lookup lookup) |
Adds a
Lookup object for a given prefix. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
ConfigurationInterpolator.addDefaultLookups(java.util.Collection<? extends Lookup> lookups) |
Adds all
Lookup objects in the given collection as default
lookups. |
void |
ConfigurationInterpolator.registerLookups(java.util.Map<java.lang.String,? extends Lookup> lookups) |
Registers all
Lookup objects in the given map with their prefixes
at this ConfigurationInterpolator. |
InterpolatorSpecification.Builder |
InterpolatorSpecification.Builder.withDefaultLookups(java.util.Collection<? extends Lookup> lookups) |
Adds the content of the given collection to the default lookups
managed by this builder.
|
InterpolatorSpecification.Builder |
InterpolatorSpecification.Builder.withPrefixLookups(java.util.Map<java.lang.String,? extends Lookup> lookups) |
Adds the content of the given map to the prefix lookups managed by
this builder.
|
Copyright © 2001–2018. All rights reserved.