Class UnaryMethodMarshaller<T,​M>

  • All Implemented Interfaces:
    Function<Object[],​T>, org.infinispan.protostream.BaseMarshaller<T>, org.infinispan.protostream.ProtobufTagMarshaller<T>, Marshallable<T>, ProtoStreamMarshaller<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 Detail

      • UnaryMethodMarshaller

        public UnaryMethodMarshaller​(Class<? extends T> targetClass,
                                     Class<M> fieldClass,
                                     Function<M,​T> factory)