Class BinaryMethodMarshaller<T,M1,M2>
java.lang.Object
org.wildfly.clustering.marshalling.protostream.reflect.AbstractMemberMarshaller<T,Method>
org.wildfly.clustering.marshalling.protostream.reflect.BinaryMemberMarshaller<T,Method,M1,M2>
org.wildfly.clustering.marshalling.protostream.reflect.BinaryMethodMarshaller<T,M1,M2>
- Type Parameters:
T- the target type of this marshallerM1- the first component accessor method return typeM2- the second component accessor method return type
- All Implemented Interfaces:
Function<Object[],T>, org.infinispan.protostream.BaseMarshaller<T>, org.infinispan.protostream.ProtobufTagMarshaller<T>, Marshallable<T>, ProtoStreamMarshaller<T>, Readable<T>, Writable<T>
Generic marshaller based on two non-public accessor methods.
- Author:
- Paul Ferraro
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.infinispan.protostream.ProtobufTagMarshaller
org.infinispan.protostream.ProtobufTagMarshaller.OperationContext, org.infinispan.protostream.ProtobufTagMarshaller.ReadContext, org.infinispan.protostream.ProtobufTagMarshaller.WriteContext -
Field Summary
Fields inherited from interface org.infinispan.protostream.BaseMarshaller
EMPTY -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class BinaryMemberMarshaller
applyMethods inherited from class AbstractMemberMarshaller
getJavaClass, readFrom, writeToMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.infinispan.protostream.BaseMarshaller
getSubClassNamesMethods inherited from interface Marshallable
sizeMethods inherited from interface ProtoStreamMarshaller
getTypeName, read, wrap, wrap, write
-
Constructor Details
-
BinaryMethodMarshaller
public BinaryMethodMarshaller(Class<? extends T> type, Class<M1> member1Type, Class<M2> member2Type, BiFunction<M1, M2, T> factory) Creates a marshaller for the specified methods.- Parameters:
type- the marshalled object typemember1Type- the former member typemember2Type- the latter member typefactory- the marshalled object factory
-