@Deprecated public class StaticLabeledEnumResolver extends AbstractCachingLabeledEnumResolver
LabeledEnumResolver
that resolves statically defined enumerations.
Static implies all enum instances were defined within Java code,
implementing the type-safe enum pattern.Modifier and Type | Field and Description |
---|---|
private static StaticLabeledEnumResolver |
INSTANCE
Deprecated.
Shared
StaticLabeledEnumResolver singleton instance. |
logger
Constructor and Description |
---|
StaticLabeledEnumResolver()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<LabeledEnum> |
findLabeledEnums(java.lang.Class type)
Deprecated.
Template method to be implemented by subclasses.
|
static StaticLabeledEnumResolver |
instance()
Deprecated.
Return the shared
StaticLabeledEnumResolver singleton instance. |
getLabeledEnumByCode, getLabeledEnumByLabel, getLabeledEnumMap, getLabeledEnumSet
private static final StaticLabeledEnumResolver INSTANCE
StaticLabeledEnumResolver
singleton instance.public static StaticLabeledEnumResolver instance()
StaticLabeledEnumResolver
singleton instance.
Mainly for resolving unique StaticLabeledEnum references on deserialization.StaticLabeledEnum
protected java.util.Set<LabeledEnum> findLabeledEnums(java.lang.Class type)
AbstractCachingLabeledEnumResolver
findLabeledEnums
in class AbstractCachingLabeledEnumResolver
type
- the enum typeLabeledEnum