Package org.glassfish.json
Class JsonBuilderFactoryImpl
java.lang.Object
org.glassfish.json.JsonBuilderFactoryImpl
- All Implemented Interfaces:
JsonBuilderFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates aJsonArrayBuilder
instance that is used to buildJsonArray
createArrayBuilder
(Collection<?> collection) Creates aJsonArrayBuilder
instance, initialized with the content of specified collection.createArrayBuilder
(JsonArray array) Creates aJsonArrayBuilder
instance, initialized with an array.Creates aJsonObjectBuilder
instance that is used to buildJsonObject
.createObjectBuilder
(Map<String, Object> object) Creates aJsonObjectBuilder
instance, initialized with the specified object.createObjectBuilder
(JsonObject object) Creates aJsonObjectBuilder
instance, initialized with an object.Returns read-only map of supported provider specific configuration properties that are used to configure the created JSON builders.
-
Field Details
-
config
-
bufferPool
-
-
Constructor Details
-
JsonBuilderFactoryImpl
JsonBuilderFactoryImpl(BufferPool bufferPool)
-
-
Method Details
-
createObjectBuilder
Description copied from interface:JsonBuilderFactory
Creates aJsonObjectBuilder
instance that is used to buildJsonObject
.- Specified by:
createObjectBuilder
in interfaceJsonBuilderFactory
- Returns:
- a JSON object builder
-
createObjectBuilder
Description copied from interface:JsonBuilderFactory
Creates aJsonObjectBuilder
instance, initialized with an object.- Specified by:
createObjectBuilder
in interfaceJsonBuilderFactory
- Parameters:
object
- the initial object in the builder- Returns:
- a JSON object builder
-
createObjectBuilder
Description copied from interface:JsonBuilderFactory
Creates aJsonObjectBuilder
instance, initialized with the specified object.- Specified by:
createObjectBuilder
in interfaceJsonBuilderFactory
- Parameters:
object
- the initial object in the builder- Returns:
- a JSON object builder
-
createArrayBuilder
Description copied from interface:JsonBuilderFactory
Creates aJsonArrayBuilder
instance that is used to buildJsonArray
- Specified by:
createArrayBuilder
in interfaceJsonBuilderFactory
- Returns:
- a JSON array builder
-
createArrayBuilder
Description copied from interface:JsonBuilderFactory
Creates aJsonArrayBuilder
instance, initialized with an array.- Specified by:
createArrayBuilder
in interfaceJsonBuilderFactory
- Parameters:
array
- the initial array in the builder- Returns:
- a JSON array builder
-
createArrayBuilder
Description copied from interface:JsonBuilderFactory
Creates aJsonArrayBuilder
instance, initialized with the content of specified collection.- Specified by:
createArrayBuilder
in interfaceJsonBuilderFactory
- Parameters:
collection
- the initial data for the builder- Returns:
- a JSON array builder
-
getConfigInUse
Description copied from interface:JsonBuilderFactory
Returns read-only map of supported provider specific configuration properties that are used to configure the created JSON builders. If there are any specified configuration properties that are not supported by the provider, they won't be part of the returned map.- Specified by:
getConfigInUse
in interfaceJsonBuilderFactory
- Returns:
- a map of supported provider specific properties that are used to configure the builders. The map be empty but not null.
-