public class DecoratorExternalizer<T> extends Object implements Externalizer<T>, org.wildfly.security.ParametricPrivilegedAction<T,T>
| Constructor and Description |
|---|
DecoratorExternalizer(Class<T> decoratedClass,
UnaryOperator<T> decorator,
T sample)
Constructs a decorator externalizer.
|
| Modifier and Type | Method and Description |
|---|---|
Class<T> |
getTargetClass() |
T |
readObject(ObjectInput input) |
T |
run(T value) |
void |
writeObject(ObjectOutput output,
T value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsizepublic DecoratorExternalizer(Class<T> decoratedClass, UnaryOperator<T> decorator, T sample)
decoratedClass - the generalized type of the decorated objectdecorator - the decoration functionsample - a sample object used to determine the type of the decorated objectpublic Class<T> getTargetClass()
getTargetClass in interface Externalizer<T>public void writeObject(ObjectOutput output, T value) throws IOException
writeObject in interface Externalizer<T>IOExceptionpublic T readObject(ObjectInput input) throws IOException, ClassNotFoundException
readObject in interface Externalizer<T>IOExceptionClassNotFoundExceptionCopyright © 2023 JBoss by Red Hat. All rights reserved.