public enum ConfigMode extends Enum<ConfigMode>
AbstractConfigManager.uniqueConfigTypes| Enum Constant and Description |
|---|
IGNORE
Ignore mode: accept first config, ignore later configs
|
OVERRIDE
Override mode: accept last config, override previous config
|
OVERRIDE_ALL
Override mode: accept last config, override previous config regardless of whether the attribute of previous config is absent or not
|
OVERRIDE_IF_ABSENT
Override mode: accept last config, override previous config only when the attribute of previous config is absent
|
STRICT
Strict mode: accept only one config for unique config type, throw exceptions if found more than one config for a unique config type.
|
| Modifier and Type | Method and Description |
|---|---|
static ConfigMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigMode STRICT
public static final ConfigMode OVERRIDE
public static final ConfigMode OVERRIDE_ALL
public static final ConfigMode OVERRIDE_IF_ABSENT
public static final ConfigMode IGNORE
public static ConfigMode[] values()
for (ConfigMode c : ConfigMode.values()) System.out.println(c);
public static ConfigMode 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 nullCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.