private static class AnnotationInvocationHandler.SerializationProxy
extends java.lang.Object
AnnotationInvocationHandler in a serialized stream.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Class<? extends java.lang.annotation.Annotation> |
annotationType
Stores the annotation type to emulate.
|
private HashMap<java.lang.String,java.lang.Object> |
valueMap
Stores the values corresponding to the annotation values.
|
| Modifier | Constructor and Description |
|---|---|
private |
SerializationProxy(HashMap<java.lang.String,java.lang.Object> valueMap,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Creates a new proxy instance.
|
| Modifier and Type | Method and Description |
|---|---|
private java.lang.Object |
readResolve()
Replaces the proxy instance in a serialized input stream by
the original
AnnotationInvocationHandler instance. |
private final HashMap<java.lang.String,java.lang.Object> valueMap
private final java.lang.Class<? extends java.lang.annotation.Annotation> annotationType
private SerializationProxy(HashMap<java.lang.String,java.lang.Object> valueMap, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
valueMap - the values corresponding to the annotation valuesannotationType - the annotation type to emulateprivate java.lang.Object readResolve()
throws java.io.ObjectStreamException
AnnotationInvocationHandler instance.java.io.ObjectStreamException - in case of problems during
deserialization