| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.core.enums.AbstractCachingLabeledEnumResolver
@Deprecated public abstract class AbstractCachingLabeledEnumResolver
Abstract base class for LabeledEnumResolver implementations,
 caching all retrieved LabeledEnum instances.
 
Subclasses need to implement the template method
 findLabeledEnums(Class).
findLabeledEnums(Class)| Field Summary | |
|---|---|
protected  Log | 
logger
Deprecated.  | 
| Constructor Summary | |
|---|---|
AbstractCachingLabeledEnumResolver()
Deprecated.  | 
|
| Method Summary | |
|---|---|
protected abstract  Set<LabeledEnum> | 
findLabeledEnums(Class type)
Deprecated. Template method to be implemented by subclasses.  | 
 LabeledEnum | 
getLabeledEnumByCode(Class type,
                     Comparable code)
Deprecated. Resolve a single LabeledEnum by its identifying code. | 
 LabeledEnum | 
getLabeledEnumByLabel(Class type,
                      String label)
Deprecated. Resolve a single LabeledEnum by its identifying code. | 
 Map<Comparable,LabeledEnum> | 
getLabeledEnumMap(Class type)
Deprecated. Return a map of enumerations of a particular type.  | 
 Set<LabeledEnum> | 
getLabeledEnumSet(Class type)
Deprecated. Return a set of enumerations of a particular type.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected final transient Log logger
| Constructor Detail | 
|---|
public AbstractCachingLabeledEnumResolver()
| Method Detail | 
|---|
public Set<LabeledEnum> getLabeledEnumSet(Class type)
                                   throws IllegalArgumentException
LabeledEnumResolver
getLabeledEnumSet in interface LabeledEnumResolvertype - the enum type
IllegalArgumentException - if the type is not supported
public Map<Comparable,LabeledEnum> getLabeledEnumMap(Class type)
                                              throws IllegalArgumentException
LabeledEnumResolverLabeledEnum instance.
getLabeledEnumMap in interface LabeledEnumResolvertype - the enum type
LabeledEnum instance as value
IllegalArgumentException - if the type is not supported
public LabeledEnum getLabeledEnumByCode(Class type,
                                        Comparable code)
                                 throws IllegalArgumentException
LabeledEnumResolverLabeledEnum by its identifying code.
getLabeledEnumByCode in interface LabeledEnumResolvertype - the enum typecode - the enum code
IllegalArgumentException - if the code did not map to a valid instance
public LabeledEnum getLabeledEnumByLabel(Class type,
                                         String label)
                                  throws IllegalArgumentException
LabeledEnumResolverLabeledEnum by its identifying code.
getLabeledEnumByLabel in interface LabeledEnumResolvertype - the enum typelabel - the enum label
IllegalArgumentException - if the label did not map to a valid instanceprotected abstract Set<LabeledEnum> findLabeledEnums(Class type)
type - the enum type
LabeledEnum
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||