Class UnaryMemberMarshaller<T, M extends Member, M1>

java.lang.Object
org.wildfly.clustering.marshalling.protostream.reflect.AbstractMemberMarshaller<T,M>
org.wildfly.clustering.marshalling.protostream.reflect.UnaryMemberMarshaller<T,M,M1>
Type Parameters:
T - the marshaller target type
M - the reflection member type
M1 - the component member 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>
Direct Known Subclasses:
UnaryFieldMarshaller, UnaryMethodMarshaller

public class UnaryMemberMarshaller<T, M extends Member, M1> extends AbstractMemberMarshaller<T,M>
Generic marshaller based on a single non-public member.
Author:
Paul Ferraro
  • Constructor Details

    • UnaryMemberMarshaller

      public UnaryMemberMarshaller(Class<? extends T> type, BiFunction<Object,M,Object> accessor, BiFunction<Class<?>,Class<?>,M> memberLocator, Class<M1> memberType, Function<M1,T> factory)
      Creates a marshaller for the specified members.
      Parameters:
      type - the marshalled object type
      accessor - the member accessor
      memberLocator - the member locator function
      memberType - the member type
      factory - the marshalled object factory
  • Method Details

    • apply

      public T apply(Object[] parameters)