Package org.apache.dubbo.config.context
Enum ConfigMode
- All Implemented Interfaces:
Serializable,Comparable<ConfigMode>,java.lang.constant.Constable
Config processing mode for unique config type, e.g. ApplicationConfig, ModuleConfig, MonitorConfig, SslConfig, MetricsConfig
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIgnore mode: accept first config, ignore later configsOverride mode: accept last config, override previous configOverride mode: accept last config, override previous config regardless of whether the attribute of previous config is absent or notOverride mode: accept last config, override previous config only when the attribute of previous config is absentStrict mode: accept only one config for unique config type, throw exceptions if found more than one config for a unique config type. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigModeReturns 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.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
STRICT
Strict mode: accept only one config for unique config type, throw exceptions if found more than one config for a unique config type. -
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 -
IGNORE
Ignore mode: accept first config, ignore later configs
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-