Package org.freedesktop.dbus
Class RemoteInvocationHandler
- java.lang.Object
-
- org.freedesktop.dbus.RemoteInvocationHandler
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public class RemoteInvocationHandler extends java.lang.Object implements java.lang.reflect.InvocationHandler
-
-
Field Summary
Fields Modifier and Type Field Description static intCALL_TYPE_ASYNCstatic intCALL_TYPE_CALLBACKstatic intCALL_TYPE_SYNC(package private) AbstractConnectionconnprivate static org.slf4j.LoggerLOGGER(package private) RemoteObjectremote
-
Constructor Summary
Constructors Constructor Description RemoteInvocationHandler(AbstractConnection _conn, RemoteObject _remote)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectconvertRV(java.lang.String _sig, java.lang.Object[] _rp, java.lang.reflect.Method _m, AbstractConnection _conn)static java.lang.ObjectexecuteRemoteMethod(RemoteObject _ro, java.lang.reflect.Method _m, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, java.lang.Object... _args)RemoteObjectgetRemote()java.lang.Objectinvoke(java.lang.Object _proxy, java.lang.reflect.Method _method, java.lang.Object[] _args)
-
-
-
Field Detail
-
CALL_TYPE_SYNC
public static final int CALL_TYPE_SYNC
- See Also:
- Constant Field Values
-
CALL_TYPE_ASYNC
public static final int CALL_TYPE_ASYNC
- See Also:
- Constant Field Values
-
CALL_TYPE_CALLBACK
public static final int CALL_TYPE_CALLBACK
- See Also:
- Constant Field Values
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
conn
AbstractConnection conn
-
remote
RemoteObject remote
-
-
Constructor Detail
-
RemoteInvocationHandler
public RemoteInvocationHandler(AbstractConnection _conn, RemoteObject _remote)
-
-
Method Detail
-
getRemote
public RemoteObject getRemote()
-
invoke
public java.lang.Object invoke(java.lang.Object _proxy, java.lang.reflect.Method _method, java.lang.Object[] _args) throws java.lang.Throwable- Specified by:
invokein interfacejava.lang.reflect.InvocationHandler- Throws:
java.lang.Throwable
-
convertRV
public static java.lang.Object convertRV(java.lang.String _sig, java.lang.Object[] _rp, java.lang.reflect.Method _m, AbstractConnection _conn) throws DBusException- Throws:
DBusException
-
executeRemoteMethod
public static java.lang.Object executeRemoteMethod(RemoteObject _ro, java.lang.reflect.Method _m, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, java.lang.Object... _args) throws DBusException
- Throws:
DBusException
-
-