Package com.fasterxml.jackson.jr.ob.api
Class ReaderWriterProvider
java.lang.Object
com.fasterxml.jackson.jr.ob.api.ReaderWriterProvider
- Direct Known Subclasses:
ReaderWriterProvider.Pair
API to implement to provide custom
ValueReaders and
ValueWriters.- Since:
- 2.10
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation that allows chaining of two providers, one (first) with higher precedence than the other (second). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindCollectionReader(JSONReader readContext, Class<?> type, ResolvedType valueType, ValueReader readerForValues) findMapReader(JSONReader readContext, Class<?> type, ResolvedType valueType, ValueReader readerForValues) findValueReader(JSONReader readContext, Class<?> type) Method called to find custom reader for given type that is NOT one of special container types (Collection,Map): typically value is a scalar, Bean or Enum.findValueWriter(JSONWriter writeContext, Class<?> type)
-
Constructor Details
-
ReaderWriterProvider
public ReaderWriterProvider()
-
-
Method Details
-
findValueReader
Method called to find custom reader for given type that is NOT one of special container types (Collection,Map): typically value is a scalar, Bean or Enum.- Parameters:
readContext- context object that may be needed for resolving dependant readerstype- Raw type of bean to find reader for
-
findCollectionReader
public ValueReader findCollectionReader(JSONReader readContext, Class<?> type, ResolvedType valueType, ValueReader readerForValues) -
findMapReader
public ValueReader findMapReader(JSONReader readContext, Class<?> type, ResolvedType valueType, ValueReader readerForValues) -
findValueWriter
-