|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<SettingMode>
com.emarsys.ecommon.prefs.config.SettingMode
public enum SettingMode
Describes the context an ISetting
is
used in.
The setting's context is always defined by the
ConfigurationBackend
that is used
to retrieve it.
The apriori value is UNSPECIFIED
.
Note that in a composited/chained backend
its always the last backend in the chain
that responsible to defines a setting's mode.
Ergo an ISetting
's mode is only set
on its retrieval from a ConfigurationBackend
and not during the write process into a backend.
Enum Constant Summary | |
---|---|
DEFAULT
The setting got its value from a specified default. |
|
FALLBACK
The setting got its value from a fallback one. |
|
FALLBACK_DEFAULT
The setting got its value from an indirectly - through a fallback - accessed default value. |
|
PRIMARY
A primary setting in the context of a composited configuration backend. |
|
UNSPECIFIED
We do know nothing about an ISetting
in this mode. |
Method Summary | |
---|---|
static SettingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static SettingMode[] |
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 SettingMode UNSPECIFIED
ISetting
in this mode. The a priori value.
public static final SettingMode PRIMARY
public static final SettingMode FALLBACK
public static final SettingMode DEFAULT
public static final SettingMode FALLBACK_DEFAULT
Method Detail |
---|
public static SettingMode[] values()
for (SettingMode c : SettingMode.values()) System.out.println(c);
public static SettingMode 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 null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |