Package com.softlayer.api.json
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 Summary
Constructors Constructor Description JsonMarshallerFactory()
-
Method Summary
Modifier and Type Method Description static JsonMarshallerFactory
getDefault()
abstract JsonMarshaller
getJsonMarshaller()
Get a JSON marshaller for use for either marshalling or unmarshalling.
-
Constructor Details
-
JsonMarshallerFactory
public JsonMarshallerFactory()
-
-
Method Details
-
getDefault
-
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.
-