|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Configuration.Type>
com.emarsys.ecommon.prefs.config.Configuration.Type
public static enum Configuration.Type
Defines different Configuration.Type
s of concrete
Configuration
instances.
A Configuration
's Configuration.Type
describes its
main characteristics and functionality and is also
responsible for creating .
Enum Constant Summary | |
---|---|
DEFAULT
Describes a Configuration that supports
default values. |
|
FALLBACK
Describes a Configuration that supports
fallback values. |
|
FALLBACK_DEFAULT
Describes a Configuration that supports
fallback and default values . |
|
RAW
Describes a pretty much "unspecified" Configuration we do know nothing about. |
Method Summary | |
---|---|
abstract ConfigurationBackend |
createConfigBackend(ConfigurationBackend config,
ConfigurationDeclaration declaration)
An abstract factory method that is used to initialze a Configuration 's backend according
to this Configuration.Type as well as the
ConfigurationDeclaration passed. |
static Configuration.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Configuration.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Configuration.Type RAW
Configuration
we do know nothing about.
Neither default values nor fallback settings
might be supported.
public static final Configuration.Type DEFAULT
Configuration
that supports
default values.
public static final Configuration.Type FALLBACK
Configuration
that supports
fallback values.
public static final Configuration.Type FALLBACK_DEFAULT
Configuration
that supports
fallback and default values .
The priority chain used for setting resolution is the
following:
primary setting --> fallback --> default --> fallback-default
Method Detail |
---|
public static Configuration.Type[] values()
for (Configuration.Type c : Configuration.Type.values()) System.out.println(c);
public static Configuration.Type 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 name
java.lang.NullPointerException
- if the argument is nullpublic abstract ConfigurationBackend createConfigBackend(ConfigurationBackend config, ConfigurationDeclaration declaration)
Configuration
's backend according
to this Configuration.Type
as well as the
ConfigurationDeclaration
passed.
The created backend will use the passed instance
as its primary source.
config
- - the primary backend of the Configuration
declaration
- - the declaration of the Configuration
ConfigurationBackend
,
never null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |