|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.di.api.remote.impl.RemoteListenerAdapter
public class RemoteListenerAdapter
This class is used to adapt from Remote to Local listener interfaces. This
adapter expects that the methods don't receive Remote references but only
serializable objects. Each method is a callback method that is not expected
to return a value.
Note: This class is for internal usage only. Any dependency from the
end-user will not be supported. Changes to this class will happen without a
warning.
Method Summary | ||
---|---|---|
static
|
create(L fromRemoteListener,
java.lang.Class<T> toClass)
Creates a new adapter instance for a RemoteListener |
|
static java.util.EventListener |
create(RemoteListener fromRemoteListener,
java.lang.Class<? extends RemoteListener>[] interfaces)
Creates a new adapter instance for a RemoteListener . |
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
public static final <L extends RemoteListener,T extends java.util.EventListener> T create(L fromRemoteListener, java.lang.Class<T> toClass)
RemoteListener
L
- The type of the remote listerT
- the type of the local listener to adaptfromRemoteListener
- the remote listener instance to adapttoClass
- the local listener class
public static final java.util.EventListener create(RemoteListener fromRemoteListener, java.lang.Class<? extends RemoteListener>[] interfaces) throws java.lang.ClassNotFoundException
RemoteListener
. Unlike the
create(RemoteListener, Class)
method this one tries to
automatically find the corresponding local listener for which an adapter
will be created.
L
- The type of the remote listerfromRemoteListener
- the remote listener instance to adapt
java.lang.ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |