Interface DataFormatFactory<F extends TokenStreamFactory, FB extends TSFBuilder<F,FB>, M extends ObjectMapper, MB extends MapperBuilder<M,MB>>
- Type Parameters:
F- Type of TokenStreamFactoryFB- Type of TokenStreamFactory.TSFBuilder (that builds the TokenStreamFactory)M- Type of ObjectMapperMB- Type of MapperBuilder (that builds the ObjectMapper)
- All Known Implementing Classes:
CborDataFormatFactory, JsonDataFormatFactory, SmileDataFormatFactory, YamlDataFormatFactory
public interface DataFormatFactory<F extends TokenStreamFactory, FB extends TSFBuilder<F,FB>, M extends ObjectMapper, MB extends MapperBuilder<M,MB>>
Factory for creating builders for a jackson data format.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreateMapperBuilder(F factory) Creates and returns a newMapperBuilderfor this data format backed by the given factory.Creates and returns a newTokenStreamFactoryfor this data format.getName()Returns the name of the data format.
-
Field Details
-
JSON
- See Also:
-
YAML
- See Also:
-
SMILE
- See Also:
-
CBOR
- See Also:
-
-
Method Details
-
getName
-
createTokenStreamFactoryBuilder
FB createTokenStreamFactoryBuilder()Creates and returns a newTokenStreamFactoryfor this data format.- Returns:
- a new
TokenStreamFactoryfor this data format.
-
createMapperBuilder
Creates and returns a newMapperBuilderfor this data format backed by the given factory.- Parameters:
factory- the factory constructed from the builder returned bycreateTokenStreamFactoryBuilder()(perhaps decorated with other configuration)- Returns:
- a new
MapperBuilderfor this data format backed by the given factory.
-