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 theGsonJsonMarshallerFactory
is used. This can be overridden by a custom marshaller factory using theServiceLoader
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.
-
-
-
Method Detail
-
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.
-
-