org.springframework.ui.format
Interface AnnotationFormatterFactory<A extends Annotation,T>

Type Parameters:
A - the type of Annotation this factory uses to create Formatter instances
T - the type of object that the factory's Formatters are dealing with

public interface AnnotationFormatterFactory<A extends Annotation,T>

A factory that creates formatters to format property values on properties annotated with a particular format Annotation.

For example, a CurrencyAnnotationFormatterFactory might create a Formatter that formats a BigDecimal value set on a property annotated with @CurrencyFormat.

Since:
3.0
Author:
Keith Donald

Method Summary
 Formatter<T> getFormatter(A annotation)
          Get the Formatter that will format the value of the property annotated with the provided annotation.
 

Method Detail

getFormatter

Formatter<T> getFormatter(A annotation)
Get the Formatter that will format the value of the property annotated with the provided annotation. The annotation instance can contain properties that may be used to configure the Formatter that is returned.

Parameters:
annotation - the annotation instance
Returns:
the Formatter to use to format values of properties annotated with the annotation.