public enum ConfigMode extends Enum<ConfigMode>
| 枚举常量和说明 |
|---|
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.
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.