Class DecoratorMarshaller<T>

Type Parameters:
T - the target type of this marshaller
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:
SynchronizedDecoratorMarshaller

public class DecoratorMarshaller<T> extends UnaryFieldMarshaller<T,T>
Marshaller for a decorator that does not provide public access to its decorated object.
Author:
Paul Ferraro
  • Constructor Details

    • DecoratorMarshaller

      public DecoratorMarshaller(Class<T> decoratedClass, UnaryOperator<T> decorator, T sample)
      Creates a marshaller for the specified decorator class.
      Parameters:
      decoratedClass - the marshalled object type
      decorator - the decorator function
      sample - a sample object