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