public enum DefaultLookups extends Enum<DefaultLookups>
An enumeration class defining constants for the Lookup
objects
available for each Configuration
object per default.
When a new configuration object derived from AbstractConfiguration
is
created it installs a ConfigurationInterpolator
with a default set of
Lookup
objects. These lookups are defined by this enumeration class.
All the default Lookup
classes are state-less, thus their instances
can be shared between multiple configuration objects. Therefore, it makes
sense to keep shared instances in this enumeration class.
Enum Constant and Description |
---|
CONST
The lookup for constants.
|
ENVIRONMENT
The lookup for environment properties.
|
SYSTEM_PROPERTIES
The lookup for system properties.
|
Modifier and Type | Method and Description |
---|---|
Lookup |
getLookup()
Returns the standard
Lookup instance of this kind. |
String |
getPrefix()
Returns the standard prefix for the lookup object of this kind.
|
static DefaultLookups |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultLookups[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultLookups SYSTEM_PROPERTIES
public static final DefaultLookups ENVIRONMENT
public static final DefaultLookups CONST
public static DefaultLookups[] values()
for (DefaultLookups c : DefaultLookups.values()) System.out.println(c);
public static DefaultLookups valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getPrefix()
public Lookup getLookup()
Lookup
instance of this kind.Lookup
objectCopyright © 2001–2018 The Apache Software Foundation. All rights reserved.