public class

StaticLabeledEnumResolver

extends AbstractCachingLabeledEnumResolver
java.lang.Object
   ↳ org.springframework.core.enums.AbstractCachingLabeledEnumResolver
     ↳ org.springframework.core.enums.StaticLabeledEnumResolver

This class is deprecated.
as of Spring 3.0, in favor of Java 5 enums.

Class Overview

LabeledEnumResolver that resolves statically defined enumerations. Static implies all enum instances were defined within Java code, implementing the type-safe enum pattern.

Summary

[Expand]
Inherited Fields
From class org.springframework.core.enums.AbstractCachingLabeledEnumResolver
Public Constructors
StaticLabeledEnumResolver()
Public Methods
static StaticLabeledEnumResolver instance()
Return the shared StaticLabeledEnumResolver singleton instance.
Protected Methods
Set<LabeledEnum> findLabeledEnums(Class type)
Template method to be implemented by subclasses.
[Expand]
Inherited Methods
From class org.springframework.core.enums.AbstractCachingLabeledEnumResolver
From class java.lang.Object
From interface org.springframework.core.enums.LabeledEnumResolver

Public Constructors

public StaticLabeledEnumResolver ()

Also: SpringCore

Public Methods

public static StaticLabeledEnumResolver instance ()

Also: SpringCore

Return the shared StaticLabeledEnumResolver singleton instance. Mainly for resolving unique StaticLabeledEnum references on deserialization.

Protected Methods

protected Set<LabeledEnum> findLabeledEnums (Class type)

Also: SpringCore

Template method to be implemented by subclasses. Supposed to find all LabeledEnum instances for the given type.

Parameters
type the enum type
Returns
  • the Set of LabeledEnum instances