Definition of an interface for looking up variables during interpolation.
Objects implementing this interface can be assigned a variable prefix and added to a {@link ConfigurationInterpolator} object. Whenever the{@code ConfigurationInterpolator} encounters a property value referencing avariable, e.g. ${prefix:variableName}
, it extracts the prefix and finds the matching {@code Lookup} object. Then this object is asked toresolve the variable name and provide the corresponding value.
This interface defines a single method for performing variable lookup. It is passed the name of a variable and has to return the corresponding value. It is of course up to a specific implementation how this is done. If the variable name cannot be resolved, an implementation has to return null.
Note: Implementations must be aware that they can be accessed concurrently. This is for instance the case if a configuration object is read by multiple threads or if a {@code Lookup} object is shared by multiple configurations.
@version $Id: Lookup.java 1425767 2012-12-25 20:12:16Z oheger $ @since 2.0Definition of an interface for looking up variables during interpolation.
Objects implementing this interface can be assigned a variable prefix and added to a {@link ConfigurationInterpolator} object. Whenever the{@code ConfigurationInterpolator} encounters a property value referencing avariable, e.g. ${prefix:variableName}
, it extracts the prefix and finds the matching {@code Lookup} object. Then this object is asked toresolve the variable name and provide the corresponding value.
This interface defines a single method for performing variable lookup. It is passed the name of a variable and has to return the corresponding value. It is of course up to a specific implementation how this is done. If the variable name cannot be resolved, an implementation has to return null.
Note: Implementations must be aware that they can be accessed concurrently. This is for instance the case if a configuration object is read by multiple threads or if a {@code Lookup} object is shared by multiple configurations.
@version $Id: Lookup.java 1624601 2014-09-12 18:04:36Z oheger $ @since 2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|