Interface MarshallerProvider<T>
public interface MarshallerProvider<T>
A service provider interface for marshaller providers.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault <U> MarshallerProvider<U> asSubclass(Class<U> targetClass) Returns a marshaller suitable for marshalling an object of the specified classReturns the class for which this implementation provides a marshaller.
-
Method Details
-
getProvidedClass
Returns the class for which this implementation provides a marshaller.- Returns:
- the class for which this implementation provides a marshaller.
-
asSubclass
-
getMarshaller
Marshaller<T,ByteBuffer> getMarshaller()Returns a marshaller suitable for marshalling an object of the specified class- Type Parameters:
T- the target class type- Parameters:
targetClass- a target class- Returns:
- an optional marshaller of for the specified class
-