|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.reflect.annotation.AnnotationInvocationHandler
public final class AnnotationInvocationHandler
This class exists for serialization compatibility with the JDK. VMs can choose to implement annotations by constructing proxies with this invocation handler, but that is not required. If a different strategy for proxy objects is chosen, they can have a writeReplace method to substitute a Proxy based on this invocation handler is used for serialization.
| Constructor Summary | |
|---|---|
AnnotationInvocationHandler(Class type,
Map memberValues)
Construct a new invocation handler for an annotation proxy. |
|
| Method Summary | |
|---|---|
static boolean |
equals(Class type,
Map memberValues,
Object other)
Compare an instance of AnnotationInvocationHandler with another object. |
static int |
hashCode(Class type,
Map memberValues)
Compute the hashCode for an annotation. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
Handles method calls on a dynamically created Proxy. |
static String |
toString(Class type,
Map memberValues)
This method is public for use by other parts of the VM. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationInvocationHandler(Class type,
Map memberValues)
| Method Detail |
|---|
public static boolean equals(Class type,
Map memberValues,
Object other)
public static int hashCode(Class type,
Map memberValues)
public static String toString(Class type,
Map memberValues)
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
InvocationHandlerHandles method calls on a dynamically created Proxy.
invoke in interface InvocationHandlerproxy - the proxy object on which the methode was invokedmethod - the method that was invokedargs - the arguments that were given to the method
Throwable - that is listed in the throws clause of the
invoked method or UndeclaredThrowableException in case the thrown
exception is not listed there.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||