Update FormatterRegistry interface in reference manual

Closes gh-26812
This commit is contained in:
Sviatoslav Hryb 2021-04-15 19:45:13 +03:00 committed by GitHub
parent 5b1ab31559
commit af06b80bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -1492,13 +1492,17 @@ The following listing shows the `FormatterRegistry` SPI:
public interface FormatterRegistry extends ConverterRegistry {
void addFormatterForFieldType(Class<?> fieldType, Printer<?> printer, Parser<?> parser);
void addPrinter(Printer<?> printer);
void addParser(Parser<?> parser);
void addFormatter(Formatter<?> formatter);
void addFormatterForFieldType(Class<?> fieldType, Formatter<?> formatter);
void addFormatterForFieldType(Formatter<?> formatter);
void addFormatterForFieldType(Class<?> fieldType, Printer<?> printer, Parser<?> parser);
void addFormatterForAnnotation(AnnotationFormatterFactory<?> factory);
void addFormatterForFieldAnnotation(AnnotationFormatterFactory<? extends Annotation> annotationFormatterFactory);
}
----