public enum ConfigPreference extends Enum<ConfigPreference>
When configured profile specific configuration, local config will override the remote, because the local config is profile specific, it has higher priority.
So give remote config a chance to "win", we treat remote config as profile specific, it should be included after profile specific sibling imports. Eventually, it will override the local profile specific config.
| Enum Constant and Description |
|---|
LOCAL
Prefer local configuration.
|
REMOTE
Prefer remote configuration.
|
| Modifier and Type | Method and Description |
|---|---|
static ConfigPreference |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigPreference[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigPreference LOCAL
public static final ConfigPreference REMOTE
public static ConfigPreference[] values()
for (ConfigPreference c : ConfigPreference.values()) System.out.println(c);
public static ConfigPreference 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 © 2023 Pivotal Software, Inc.. All rights reserved.