Class DecoratorMarshaller<T>
java.lang.Object
org.wildfly.clustering.marshalling.protostream.reflect.AbstractMemberMarshaller<T,Field>
org.wildfly.clustering.marshalling.protostream.reflect.UnaryMemberMarshaller<T,Field,T>
org.wildfly.clustering.marshalling.protostream.reflect.UnaryFieldMarshaller<T,T>
org.wildfly.clustering.marshalling.protostream.reflect.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
Marshaller for a decorator that does not provide public access to its decorated object.
- 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
ConstructorsConstructorDescriptionDecoratorMarshaller(Class<T> decoratedClass, UnaryOperator<T> decorator, T sample) Creates a marshaller for the specified decorator class. -
Method Summary
Methods inherited from class UnaryMemberMarshaller
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
-
DecoratorMarshaller
Creates a marshaller for the specified decorator class.- Parameters:
decoratedClass- the marshalled object typedecorator- the decorator functionsample- a sample object
-