Class UnaryMethodMarshaller<T,M>

Type Parameters:
T - the marshaller target type
M - the method accessor result 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>

public class UnaryMethodMarshaller<T,M> extends UnaryMemberMarshaller<T,Method,M>
Generic marshaller based on a single non-public accessor method.
Author:
Paul Ferraro
  • Constructor Details

    • UnaryMethodMarshaller

      public UnaryMethodMarshaller(Class<? extends T> targetClass, Class<M> memberClass, Function<M,T> factory)
      Creates a marshaller for the specified methods.
      Parameters:
      targetClass - the marshalled object type
      memberClass - the member type
      factory - the marshalled object factory