Package io.helidon.media.jsonp.common
Class JsonProcessing.Builder
- java.lang.Object
-
- io.helidon.media.jsonp.common.JsonProcessing.Builder
-
- All Implemented Interfaces:
Builder<JsonProcessing>
,Supplier<JsonProcessing>
- Enclosing class:
- JsonProcessing
public static class JsonProcessing.Builder extends Object implements Builder<JsonProcessing>
Fluent-API builder forJsonProcessing
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonProcessing
build()
Build the instance from this builder.JsonProcessing.Builder
jsonProcessingConfig(Map<String,?> config)
Configuration to use when creating reader and writer factories.JsonProcessing.Builder
jsonReaderFactory(JsonReaderFactory factory)
Explicit JSON-P Reader factory instance.JsonProcessing.Builder
jsonWriterFactory(JsonWriterFactory factory)
Explicit JSON-P Writer factory instance.
-
-
-
Method Detail
-
build
public JsonProcessing build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<JsonProcessing>
- Returns:
- instance of the built type
-
jsonProcessingConfig
public JsonProcessing.Builder jsonProcessingConfig(Map<String,?> config)
Configuration to use when creating reader and writer factories.- Parameters:
config
- configuration of JSON-P library- Returns:
- updated builder instance
-
jsonWriterFactory
public JsonProcessing.Builder jsonWriterFactory(JsonWriterFactory factory)
Explicit JSON-P Writer factory instance.- Parameters:
factory
- writer factory- Returns:
- updated builder instance
-
jsonReaderFactory
public JsonProcessing.Builder jsonReaderFactory(JsonReaderFactory factory)
Explicit JSON-P Reader factory instance.- Parameters:
factory
- reader factory- Returns:
- updated builder instance
-
-