@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.logger
Constructor and Description |
---|
StaticLabeledEnumResolver()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Set<LabeledEnum> |
findLabeledEnums(Class type)
Deprecated.
Template method to be implemented by subclasses.
|
static StaticLabeledEnumResolver |
instance()
Deprecated.
Return the shared
StaticLabeledEnumResolver singleton instance. |
getLabeledEnumByCode, getLabeledEnumByLabel, getLabeledEnumMap, getLabeledEnumSet
public static StaticLabeledEnumResolver instance()
StaticLabeledEnumResolver
singleton instance.
Mainly for resolving unique StaticLabeledEnum references on deserialization.StaticLabeledEnum
protected Set<LabeledEnum> findLabeledEnums(Class type)
AbstractCachingLabeledEnumResolver
findLabeledEnums
in class AbstractCachingLabeledEnumResolver
type
- the enum typeLabeledEnum