类 DateFormatterRegistrar
java.lang.Object
cn.taketoday.format.datetime.DateFormatterRegistrar
- 所有已实现的接口:
FormatterRegistrar
Configures basic date formatting for use with Framework, primarily for
DateTimeFormat declarations.
Applies to fields of type Date, Calendar and long.
Designed for direct instantiation but also exposes the static
addDateConverters(ConverterRegistry) utility method for
ad-hoc use against any ConverterRegistry instance.
- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidaddDateConverters(cn.taketoday.core.conversion.ConverterRegistry converterRegistry) Add date converters to the specified registry.voidregisterFormatters(FormatterRegistry registry) Register Formatters and Converters with a FormattingConversionService through a FormatterRegistry SPI.voidsetFormatter(DateFormatter dateFormatter) Set a global date formatter to register.
-
构造器详细资料
-
DateFormatterRegistrar
public DateFormatterRegistrar()
-
-
方法详细资料
-
setFormatter
-
registerFormatters
从接口复制的说明:FormatterRegistrarRegister Formatters and Converters with a FormattingConversionService through a FormatterRegistry SPI.- 指定者:
registerFormatters在接口中FormatterRegistrar- 参数:
registry- the FormatterRegistry instance to use.
-
addDateConverters
public static void addDateConverters(cn.taketoday.core.conversion.ConverterRegistry converterRegistry) Add date converters to the specified registry.- 参数:
converterRegistry- the registry of converters to add to
-