Class JsonBuilderFactoryImpl

    • Field Detail

      • config

        private final java.util.Map<java.lang.String,​?> config
    • Constructor Detail

      • JsonBuilderFactoryImpl

        JsonBuilderFactoryImpl​(BufferPool bufferPool)
    • Method Detail

      • createObjectBuilder

        public JsonObjectBuilder createObjectBuilder​(java.util.Map<java.lang.String,​java.lang.Object> object)
        Description copied from interface: JsonBuilderFactory
        Creates a JsonObjectBuilder instance, initialized with the specified object.
        Specified by:
        createObjectBuilder in interface JsonBuilderFactory
        Parameters:
        object - the initial object in the builder
        Returns:
        a JSON object builder
      • createArrayBuilder

        public JsonArrayBuilder createArrayBuilder​(java.util.Collection<?> collection)
        Description copied from interface: JsonBuilderFactory
        Creates a JsonArrayBuilder instance, initialized with the content of specified collection.
        Specified by:
        createArrayBuilder in interface JsonBuilderFactory
        Parameters:
        collection - the initial data for the builder
        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 interface JsonBuilderFactory
        Returns:
        a map of supported provider specific properties that are used to configure the builders. The map be empty but not null.