Package org.glassfish.json
Class JsonBuilderFactoryImpl
- java.lang.Object
-
- org.glassfish.json.JsonBuilderFactoryImpl
-
- All Implemented Interfaces:
JsonBuilderFactory
class JsonBuilderFactoryImpl extends java.lang.Object implements JsonBuilderFactory
-
-
Field Summary
Fields Modifier and Type Field Description private BufferPool
bufferPool
private java.util.Map<java.lang.String,?>
config
-
Constructor Summary
Constructors Constructor Description JsonBuilderFactoryImpl(BufferPool bufferPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonArrayBuilder
createArrayBuilder()
Creates aJsonArrayBuilder
instance that is used to buildJsonArray
JsonObjectBuilder
createObjectBuilder()
Creates aJsonObjectBuilder
instance that is used to buildJsonObject
.java.util.Map<java.lang.String,?>
getConfigInUse()
Returns read-only map of supported provider specific configuration properties that are used to configure the created JSON builders.
-
-
-
Field Detail
-
config
private final java.util.Map<java.lang.String,?> config
-
bufferPool
private final BufferPool bufferPool
-
-
Constructor Detail
-
JsonBuilderFactoryImpl
JsonBuilderFactoryImpl(BufferPool bufferPool)
-
-
Method Detail
-
createObjectBuilder
public JsonObjectBuilder createObjectBuilder()
Description copied from interface:JsonBuilderFactory
Creates aJsonObjectBuilder
instance that is used to buildJsonObject
.- Specified by:
createObjectBuilder
in interfaceJsonBuilderFactory
- Returns:
- a JSON object builder
-
createArrayBuilder
public JsonArrayBuilder createArrayBuilder()
Description copied from interface:JsonBuilderFactory
Creates aJsonArrayBuilder
instance that is used to buildJsonArray
- Specified by:
createArrayBuilder
in interfaceJsonBuilderFactory
- Returns:
- a JSON array builder
-
getConfigInUse
public java.util.Map<java.lang.String,?> 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.
-
-