public final class NotesInvocationHandler extends Object implements InvocationHandler
This class is responsible to separate internal objects from external proxies, where especially arguments and return values must be extracted and wrapped thru each method invocation
.| Constructor and Description |
|---|
NotesInvocationHandler(Object theObject)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
getNotesProxy(Class[] theInterfaces,
Object theObject)
Creates a Proxy for an Interface to an Object.
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
Processes a method invocation on a proxy instance and returns the result.
|
public NotesInvocationHandler(Object theObject)
theObject - the wrapped objectpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable
All arguments that are proxies to a NotesInvocationHandler are extracted from the proxy to the original objects. If the resulting object is a Notes object, a new proxy will be created.
Further Details from
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method,
java.lang.Object[]):
invoke in interface InvocationHandlerThrowableInvocationHandler.invoke(java.lang.Object,
java.lang.reflect.Method, java.lang.Object[])Copyright © 2005–2020. All rights reserved.