Class JsonMarshallerFactory


  • public abstract class JsonMarshallerFactory
    extends Object
    Base class for an JSON marshaller factory. By default the GsonJsonMarshallerFactory is used. This can be overridden by a custom marshaller factory using the ServiceLoader pattern. It is also cached (though not necessarily guaranteed to be a singleton or instantiated only once) upon first access.
    • Constructor Detail

      • JsonMarshallerFactory

        public JsonMarshallerFactory()
    • Method Detail

      • getJsonMarshaller

        public abstract JsonMarshaller getJsonMarshaller()
        Get a JSON marshaller for use for either marshalling or unmarshalling. The resulting marshaller is only used once, but this method may be called from multiple threads.