InvocationHandler for an Annotation that Spring has
synthesized (i.e. wrapped in a dynamic proxy) with additional
functionality such as attribute alias handling.
Annotation, AnnotationUtils#synthesizeAnnotation(Annotation, AnnotatedElement)
| Modifier and Type | Field and Description |
|---|---|
| private final MergedAnnotation | |
| private final AttributeMethods | |
| private volatile Integer | |
| private volatile String | |
| private final Class | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | annotationEquals(Object
the other object to compare against other)See |
| private int | |
| private String | |
| private Object | cloneArray(Object
the array to clone array)Clone the provided array, ensuring that the original component type is retained. |
| private Integer | |
| pack-priv static <A extends Annotation> A | |
| private Object | |
| private static String | |
| public Object | invoke(Object
the proxy instance that the method was invoked on proxy, Method the method, Object[] Method instance corresponding to
the interface method invoked on the proxy instance. The declaring
class of the Method object will be the interface that
the method was declared in, which may be a superinterface of the
proxy interface that the proxy class inherits the method through.an array of objects containing the values of the
arguments passed in the method invocation on the proxy instance,
or args)null if interface method takes no arguments.
Arguments of primitive types are wrapped in instances of the
appropriate primitive wrapper class, such as
java.lang.Integer or java.lang.Boolean.Implements java. Processes a method invocation on a proxy instance and returns the result. |
| private String |
| annotation | back to summary |
|---|---|
| private final MergedAnnotation<?> annotation | |
| attributes | back to summary |
|---|---|
| private final AttributeMethods attributes | |
| hashCode | back to summary |
|---|---|
| private volatile Integer hashCode
| |
| string | back to summary |
|---|---|
| private volatile String string
| |
| type | back to summary |
|---|---|
| private final Class<A> type | |
| valueCache | back to summary |
|---|---|
| private final Map<String, Object> valueCache | |
| SynthesizedMergedAnnotationInvocationHandler | back to summary |
|---|---|
| private SynthesizedMergedAnnotationInvocationHandler(MergedAnnotation<A> annotation, Class<A> type) | |
| annotationEquals | back to summary |
|---|---|
| private boolean annotationEquals(Object other) See
| |
| annotationHashCode | back to summary |
|---|---|
| private int annotationHashCode() See | |
| annotationToString | back to summary |
|---|---|
| private String annotationToString() | |
| cloneArray | back to summary |
|---|---|
| private Object cloneArray(Object array) Clone the provided array, ensuring that the original component type is retained.
| |
| computeHashCode | back to summary |
|---|---|
| private Integer computeHashCode() | |
| createProxy | back to summary |
|---|---|
pack-priv static <A extends Annotation> A createProxy(MergedAnnotation<A> annotation, Class<A> type)
| |
| getAttributeValue | back to summary |
|---|---|
| private Object getAttributeValue(Method method) | |
| getName | back to summary |
|---|---|
| private static String getName(Class<?> clazz) | |
| invoke | back to summary |
|---|---|
| public Object invoke(Object proxy, Method method, Object[] args) Implements java. Doc from java. Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.
| |
| toString | back to summary |
|---|---|
| private String toString(Object value) This method currently does not address the following issues which we may choose to address at a later point in time.
| |