|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.enums.AbstractCachingLabeledEnumResolver
org.springframework.core.enums.StaticLabeledEnumResolver
public class StaticLabeledEnumResolver
LabeledEnumResolver
that resolves statically defined enumerations.
Static implies all enum instances were defined within Java code,
implementing the type-safe enum pattern.
Field Summary |
---|
Fields inherited from class org.springframework.core.enums.AbstractCachingLabeledEnumResolver |
---|
logger |
Constructor Summary | |
---|---|
StaticLabeledEnumResolver()
|
Method Summary | |
---|---|
protected java.util.Set |
findLabeledEnums(java.lang.Class type)
Template method to be implemented by subclasses. |
static StaticLabeledEnumResolver |
instance()
Return the shared StaticLabeledEnumResolver singleton instance. |
Methods inherited from class org.springframework.core.enums.AbstractCachingLabeledEnumResolver |
---|
getLabeledEnumByCode, getLabeledEnumByLabel, getLabeledEnumMap, getLabeledEnumSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StaticLabeledEnumResolver()
Method Detail |
---|
public static StaticLabeledEnumResolver instance()
StaticLabeledEnumResolver
singleton instance.
Mainly for resolving unique StaticLabeledEnum references on deserialization.
StaticLabeledEnum
protected java.util.Set findLabeledEnums(java.lang.Class type)
AbstractCachingLabeledEnumResolver
findLabeledEnums
in class AbstractCachingLabeledEnumResolver
type
- the enum type
LabeledEnum
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |