public enum DiscoveryScope extends Enum<DiscoveryScope>
| Enum Constant and Description |
|---|
GLOBAL_ONLY
Consider only globally registered providers.
|
LOCAL_AND_GLOBAL
Consider both locally registered providers and globally ones.
|
LOCAL_ONLY
Consider only locally registered providers.
|
LOCAL_THEN_GLOBAL
Consider only locally registered providers, if no results are found, query global cache as well.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MAJOR_VERSION |
static int |
MINOR_VERSION |
| Modifier and Type | Method and Description |
|---|---|
static DiscoveryScope |
getEnumValue(Integer ordinal)
Get the matching enum for an ordinal number
|
Integer |
getOrdinal()
Get the matching ordinal number for this enum
|
static DiscoveryScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiscoveryScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscoveryScope LOCAL_ONLY
public static final DiscoveryScope LOCAL_THEN_GLOBAL
public static final DiscoveryScope LOCAL_AND_GLOBAL
public static final DiscoveryScope GLOBAL_ONLY
public static final int MAJOR_VERSION
public static final int MINOR_VERSION
public static DiscoveryScope[] values()
for (DiscoveryScope c : DiscoveryScope.values()) System.out.println(c);
public static DiscoveryScope 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 nullpublic static DiscoveryScope getEnumValue(Integer ordinal)
ordinal - The ordinal numberpublic Integer getOrdinal()
Copyright © 2021. All rights reserved.