Class JsonMarshallerFactory

java.lang.Object
com.softlayer.api.json.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 Details

    • JsonMarshallerFactory

      public JsonMarshallerFactory()
  • Method Details

    • getDefault

      public static JsonMarshallerFactory getDefault()
    • 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.