java.io.Serializable, java.lang.Comparable<DummyLookup>, Lookuppublic enum DummyLookup extends java.lang.Enum<DummyLookup> implements Lookup
A simple dummy Lookup implementation.
This implementation always returns null for a passed in variable indicating that it cannot resolve that variable. This is useful for instance as an application of the null object pattern.
This class does not define any state, therefore a single instance can be shared. To enforce usage of only a single instance this class is actually an enumeration.
| Enum Constant | Description |
|---|---|
INSTANCE |
The single instance of this class.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Object |
lookup(java.lang.String variable) |
Looks up the value of the specified variable.
|
static DummyLookup |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static DummyLookup[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DummyLookup INSTANCE
public static DummyLookup[] values()
for (DummyLookup c : DummyLookup.values()) System.out.println(c);
public static DummyLookup valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Object lookup(java.lang.String variable)
ConfigurationInterpolator 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. This implementation always returns null.Copyright © 2001–2018. All rights reserved.