public class

NumberFormatAnnotationFormatterFactory

extends Object
implements EmbeddedValueResolverAware AnnotationFormatterFactory<A extends Annotation>
java.lang.Object
   ↳ org.springframework.format.number.NumberFormatAnnotationFormatterFactory

Class Overview

Formats fields annotated with the NumberFormat annotation.

See Also

Summary

Public Constructors
NumberFormatAnnotationFormatterFactory()
Public Methods
final Set<Class<?>> getFieldTypes()
The types of fields that may be annotated with the <A> annotation.
Parser<Number> getParser(NumberFormat annotation, Class<?> fieldType)
Printer<Number> getPrinter(NumberFormat annotation, Class<?> fieldType)
void setEmbeddedValueResolver(StringValueResolver resolver)
Set the StringValueResolver to use for resolving embedded definition values.
Protected Methods
String resolveEmbeddedValue(String value)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.context.EmbeddedValueResolverAware
From interface org.springframework.format.AnnotationFormatterFactory

Public Constructors

public NumberFormatAnnotationFormatterFactory ()

Public Methods

public final Set<Class<?>> getFieldTypes ()

The types of fields that may be annotated with the <A> annotation.

public Parser<Number> getParser (NumberFormat annotation, Class<?> fieldType)

public Printer<Number> getPrinter (NumberFormat annotation, Class<?> fieldType)

public void setEmbeddedValueResolver (StringValueResolver resolver)

Set the StringValueResolver to use for resolving embedded definition values.

Protected Methods

protected String resolveEmbeddedValue (String value)