@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, getLabeledEnumSetpublic static StaticLabeledEnumResolver instance()
StaticLabeledEnumResolver singleton instance.
Mainly for resolving unique StaticLabeledEnum references on deserialization.StaticLabeledEnumprotected Set<LabeledEnum> findLabeledEnums(Class type)
AbstractCachingLabeledEnumResolverfindLabeledEnums in class AbstractCachingLabeledEnumResolvertype - the enum typeLabeledEnum