public interface FormatterFactory extends ConfigRegistry<Formatter,FormatterFactory>, Serializable
Modifier and Type | Method and Description |
---|---|
FormatterFactory |
addFormatterConfig(Class<?> type,
GenericConfig formatterConfig)
allows to add a config for formatting the given type
|
FormatterFactory |
addFormatterConfig(Class<?> type,
GenericConfig formatterConfig,
Locale locale)
allows to add a config for formatting the given type
|
Formatter |
findFormatter(Class<?> type) |
GenericConfig |
findFormatterConfig(Class<?> type,
Locale locale) |
add, reset
Formatter findFormatter(Class<?> type)
type
- the type of the instance which has to be formattedFormatterFactory addFormatterConfig(Class<?> type, GenericConfig formatterConfig)
type
- the type the config belongs toformatterConfig
- config for the formatter of the given typeFormatterFactory addFormatterConfig(Class<?> type, GenericConfig formatterConfig, Locale locale)
type
- the type the config belongs toformatterConfig
- config for the formatter of the given typelocale
- the locale the config belongs toGenericConfig findFormatterConfig(Class<?> type, Locale locale)
type
- the type which has to be formatted and maybe need a config for itlocale
- the current localeCopyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.