Class DecoratorExternalizer<T>
java.lang.Object
org.wildfly.clustering.marshalling.spi.DecoratorExternalizer<T>
- All Implemented Interfaces:
Function<T,,T> Externalizer<T>,org.wildfly.security.ParametricPrivilegedAction<T,T>
- Direct Known Subclasses:
SynchronizedDecoratorExternalizer
public class DecoratorExternalizer<T>
extends Object
implements Externalizer<T>, org.wildfly.security.ParametricPrivilegedAction<T,T>
Marshaller for a decorator that does not provide public access to its decorated object.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDecoratorExternalizer(Class<T> decoratedClass, UnaryOperator<T> decorator, T sample) Constructs a decorator externalizer. -
Method Summary
Modifier and TypeMethodDescriptionreadObject(ObjectInput input) voidwriteObject(ObjectOutput output, T value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.marshalling.Externalizer
sizeMethods inherited from interface org.wildfly.security.ParametricPrivilegedAction
apply
-
Constructor Details
-
DecoratorExternalizer
Constructs a decorator externalizer.- Parameters:
decoratedClass- the generalized type of the decorated objectdecorator- the decoration functionsample- a sample object used to determine the type of the decorated object
-
-
Method Details
-
getTargetClass
- Specified by:
getTargetClassin interfaceExternalizer<T>
-
writeObject
- Specified by:
writeObjectin interfaceExternalizer<T>- Throws:
IOException
-
readObject
- Specified by:
readObjectin interfaceExternalizer<T>- Throws:
IOExceptionClassNotFoundException
-
run
-