Class MarshalledValueMarshaller<V,C>
- java.lang.Object
-
- org.wildfly.clustering.marshalling.spi.MarshalledValueMarshaller<V,C>
-
- All Implemented Interfaces:
Marshallability,Marshaller<V,MarshalledValue<V,C>>
public class MarshalledValueMarshaller<V,C> extends Object implements Marshaller<V,MarshalledValue<V,C>>
Marshaller that stores attribute values using marshalled values.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description MarshalledValueMarshaller(MarshalledValueFactory<C> factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisMarshallable(Object object)Indicates whether the specified object can be marshalled.Vread(MarshalledValue<V,C> value)Reads a value from its marshalled form.MarshalledValue<V,C>write(V object)Writes a value to its serialized form
-
-
-
Constructor Detail
-
MarshalledValueMarshaller
public MarshalledValueMarshaller(MarshalledValueFactory<C> factory)
-
-
Method Detail
-
read
public V read(MarshalledValue<V,C> value) throws IOException
Description copied from interface:MarshallerReads a value from its marshalled form.- Specified by:
readin interfaceMarshaller<V,C>- Parameters:
value- the marshalled form- Returns:
- an unmarshalled value/
- Throws:
IOException
-
write
public MarshalledValue<V,C> write(V object)
Description copied from interface:MarshallerWrites a value to its serialized form- Specified by:
writein interfaceMarshaller<V,C>- Returns:
- the serialized form of the value
-
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
-
-