java.lang.Object |
↳ |
org.springframework.core.enums.AbstractCachingLabeledEnumResolver |
Known Direct Subclasses
|
Summary
Fields |
protected
final
Log |
logger |
|
Fields
protected
final
Log
logger
Public Constructors
public
AbstractCachingLabeledEnumResolver
()
Public Methods
Resolve a single LabeledEnum
by its identifying code.
Parameters
type
| the enum type |
code
| the enum code |
public
LabeledEnum
getLabeledEnumByLabel
(Class type, String label)
Resolve a single LabeledEnum
by its identifying code.
Parameters
type
| the enum type |
label
| the enum label |
Return a map of enumerations of a particular type. Each element in the
map should be a key/value pair, where the key is the enum code, and the
value is the LabeledEnum
instance.
Returns
- a Map of localized enumeration instances,
with enum code as key and
LabeledEnum
instance as value
Return a set of enumerations of a particular type. Each element in the
set should be an instance of LabeledEnum.
Returns
- a set of localized enumeration instances for the provided type
Protected Methods
protected
abstract
Set<LabeledEnum>
findLabeledEnums
(Class type)
Template method to be implemented by subclasses.
Supposed to find all LabeledEnum instances for the given type.
Returns
- the Set of LabeledEnum instances