Polishing
This commit is contained in:
parent
d13d556260
commit
dc897e7b34
|
|
@ -31,9 +31,9 @@ public interface FormatterRegistry {
|
||||||
/**
|
/**
|
||||||
* Adds a Formatter to this registry indexed by type.
|
* Adds a Formatter to this registry indexed by type.
|
||||||
* <p>Use this add method when type differs from <T>.
|
* <p>Use this add method when type differs from <T>.
|
||||||
* Calling <code>getFormatter(type)</code> returns a decorator that wraps
|
* Calling <code>getFormatter(type)</code> returns a decorator that wraps
|
||||||
* the <code>targetFormatter</code> instance.
|
* the <code>targetFormatter</code> instance.
|
||||||
* <p>On format, the decorator first coerses the instance of type to <T>,
|
* <p>On format, the decorator first coerces the instance of type to <T>,
|
||||||
* then delegates to <code>targetFormatter</code> to format the value.
|
* then delegates to <code>targetFormatter</code> to format the value.
|
||||||
* <p>On parse, the decorator first delegates to the formatter to parse a <T>,
|
* <p>On parse, the decorator first delegates to the formatter to parse a <T>,
|
||||||
* then coerces the parsed value to type.
|
* then coerces the parsed value to type.
|
||||||
|
|
@ -44,14 +44,14 @@ public interface FormatterRegistry {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a Formatter to this registry indexed by <T>.
|
* Adds a Formatter to this registry indexed by <T>.
|
||||||
* <o>Calling <code>getFormatter(<T>.class)</code> returns <code>formatter</code>.
|
* <p>Calling <code>getFormatter(<T>.class)</code> returns <code>formatter</code>.
|
||||||
* @param formatter the formatter
|
* @param formatter the formatter
|
||||||
*/
|
*/
|
||||||
void addFormatterByType(Formatter<?> formatter);
|
void addFormatterByType(Formatter<?> formatter);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a Formatter to this registry indexed by the given annotation type.
|
* Adds a Formatter to this registry indexed by the given annotation type.
|
||||||
* <o>Calling <code>getFormatter(...)</code> on a field or accessor method
|
* <p>Calling <code>getFormatter(...)</code> on a field or accessor method
|
||||||
* with the given annotation returns <code>formatter</code>.
|
* with the given annotation returns <code>formatter</code>.
|
||||||
* @param formatter the formatter
|
* @param formatter the formatter
|
||||||
*/
|
*/
|
||||||
|
|
@ -59,7 +59,7 @@ public interface FormatterRegistry {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a AnnotationFormatterFactory that returns the Formatter for properties annotated with a specific annotation.
|
* Adds a AnnotationFormatterFactory that returns the Formatter for properties annotated with a specific annotation.
|
||||||
* <o>Calling <code>getFormatter(...)</code> on a field or accessor method
|
* <p>Calling <code>getFormatter(...)</code> on a field or accessor method
|
||||||
* with the given annotation returns <code>formatter</code>.
|
* with the given annotation returns <code>formatter</code>.
|
||||||
* @param factory the annotation formatter factory
|
* @param factory the annotation formatter factory
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue