@PublicApi @Deprecated public class MarshallerFactory extends Object
Marshaller instances for common types.| Constructor and Description |
|---|
MarshallerFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Marshaller<Optional<T>> |
optionalMarshaller(Marshaller<T> valueMarshaller)
Deprecated.
Returns a
Marshaller for Optional objects. |
static <T extends Serializable> |
serializableMarshaller(Class<T> clazz)
Deprecated.
Returns a
Marshaller for Serializable objects. |
static <T extends Serializable> |
serializableMarshaller(Class<T> clazz,
ClassLoader loader)
Deprecated.
Returns a
Marshaller for Serializable objects. |
static Marshaller<String> |
stringMarshaller()
Deprecated.
Returns a
Marshaller for String objects. |
public static <T> Marshaller<Optional<T>> optionalMarshaller(Marshaller<T> valueMarshaller)
Marshaller for Optional objects.T - the value typevalueMarshaller - used to marshall values held by Optional instances.Marshaller for Optional objects.public static Marshaller<String> stringMarshaller()
Marshaller for String objects.Marshaller for String objects.public static <T extends Serializable> Marshaller<T> serializableMarshaller(Class<T> clazz)
Marshaller for Serializable objects. When de-serializing, the default implementation of
ObjectInputStream.resolveClass(ObjectStreamClass) is used to resolve Class objects.T - the value typeclazz - the Class of the instances being marshalledMarshaller for Serializable objects.public static <T extends Serializable> Marshaller<T> serializableMarshaller(Class<T> clazz, ClassLoader loader)
Marshaller for Serializable objects. When de-serializing, the supplied
ClassLoader is used to resolve Class objects.T - the value typeclazz - the Class of the instances being marshalledloader - the ClassLoader is used to resolve Class objectsMarshaller for Serializable objects.Copyright © 2016 Atlassian. All rights reserved.