Class ByteBufferMarshalledValueFactory
- java.lang.Object
-
- org.wildfly.clustering.marshalling.spi.ByteBufferMarshalledValueFactory
-
- All Implemented Interfaces:
Marshallability,MarshalledValueFactory<ByteBufferMarshaller>
public class ByteBufferMarshalledValueFactory extends Object implements MarshalledValueFactory<ByteBufferMarshaller>
Factory for creating aByteBufferMarshalledValue.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ByteBufferMarshalledValueFactory(ByteBufferMarshaller marshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ByteBufferMarshalledValue<T>createMarshalledValue(T object)ByteBufferMarshallergetMarshallingContext()booleanisMarshallable(Object object)Indicates whether the specified object can be marshalled.
-
-
-
Constructor Detail
-
ByteBufferMarshalledValueFactory
public ByteBufferMarshalledValueFactory(ByteBufferMarshaller marshaller)
-
-
Method Detail
-
isMarshallable
public boolean isMarshallable(Object object)
Description copied from interface:MarshallabilityIndicates whether the specified object can be marshalled.- Specified by:
isMarshallablein interfaceMarshallability- Parameters:
object- an object to be marshalled- Returns:
- true, if the specified object can be marshalled, false otherwise
-
createMarshalledValue
public <T> ByteBufferMarshalledValue<T> createMarshalledValue(T object)
- Specified by:
createMarshalledValuein interfaceMarshalledValueFactory<ByteBufferMarshaller>
-
getMarshallingContext
public ByteBufferMarshaller getMarshallingContext()
- Specified by:
getMarshallingContextin interfaceMarshalledValueFactory<ByteBufferMarshaller>
-
-