|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.bea.domingo.service.NotesInvocationHandler
public final class NotesInvocationHandler
Invocation handler for all dynamic proxies of interfaces of the domingo API.
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 Summary | |
---|---|
NotesInvocationHandler(java.lang.Object theObject)
Constructor. |
Method Summary | |
---|---|
static java.lang.Object |
getNotesProxy(java.lang.Class[] theInterfaces,
java.lang.Object theObject)
Creates a Proxy for an Interface to an Object. |
(package private) java.lang.Object |
getObject()
Getter method for object attribute. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Processes a method invocation on a proxy instance and returns the result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NotesInvocationHandler(java.lang.Object theObject)
theObject
- the wrapped objectMethod Detail |
---|
java.lang.Object getObject()
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.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 java.lang.reflect.InvocationHandler
java.lang.Throwable
InvocationHandler.invoke(java.lang.Object,
java.lang.reflect.Method, java.lang.Object[])
public static java.lang.Object getNotesProxy(java.lang.Class[] theInterfaces, java.lang.Object theObject)
theInterfaces
- array of interface of the proxytheObject
- th object to be wrapped
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |