类 Jsr354NumberFormatAnnotationFormatterFactory
java.lang.Object
cn.taketoday.context.support.EmbeddedValueResolutionSupport
cn.taketoday.format.number.money.Jsr354NumberFormatAnnotationFormatterFactory
public class Jsr354NumberFormatAnnotationFormatterFactory
extends EmbeddedValueResolutionSupport
implements AnnotationFormatterFactory<NumberFormat>
Formats
MonetaryAmount fields annotated
with Framework's common NumberFormat annotation.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明The types of fields that may be annotated with the <A> annotation.Parser<javax.money.MonetaryAmount>getParser(NumberFormat annotation, Class<?> fieldType) Get the Parser to parse a submitted value for a field offieldTypeannotated withannotation.Printer<javax.money.MonetaryAmount>getPrinter(NumberFormat annotation, Class<?> fieldType) Get the Printer to print the value of a field offieldTypeannotated withannotation.从类继承的方法 cn.taketoday.context.support.EmbeddedValueResolutionSupport
resolveEmbeddedValue, setEmbeddedValueResolver
-
构造器详细资料
-
Jsr354NumberFormatAnnotationFormatterFactory
public Jsr354NumberFormatAnnotationFormatterFactory()
-
-
方法详细资料
-
getFieldTypes
从接口复制的说明:AnnotationFormatterFactoryThe types of fields that may be annotated with the <A> annotation.- 指定者:
getFieldTypes在接口中AnnotationFormatterFactory<NumberFormat>
-
getPrinter
从接口复制的说明:AnnotationFormatterFactoryGet the Printer to print the value of a field offieldTypeannotated withannotation.If the type T the printer accepts is not assignable to
fieldType, a coercion fromfieldTypeto T will be attempted before the Printer is invoked.- 指定者:
getPrinter在接口中AnnotationFormatterFactory<NumberFormat>- 参数:
annotation- the annotation instancefieldType- the type of field that was annotated- 返回:
- the printer
-
getParser
从接口复制的说明:AnnotationFormatterFactoryGet the Parser to parse a submitted value for a field offieldTypeannotated withannotation.If the object the parser returns is not assignable to
fieldType, a coercion tofieldTypewill be attempted before the field is set.- 指定者:
getParser在接口中AnnotationFormatterFactory<NumberFormat>- 参数:
annotation- the annotation instancefieldType- the type of field that was annotated- 返回:
- the parser
-