|
|||||||||||
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)
Creates a new adapter instance for a RemoteListener . |
|
static
|
create(L fromRemoteListener,
Class<T> toClass)
Creates a new adapter instance for a RemoteListener |
|
Object |
invoke(Object proxy,
Method method,
Object[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public static final <L extends RemoteListener,T extends EventListener> T create(L fromRemoteListener, 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 <L extends RemoteListener> EventListener create(L fromRemoteListener) throws 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
ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |