java.lang.Object
org.freedesktop.dbus.RemoteInvocationHandler
- All Implemented Interfaces:
InvocationHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
convertRV
(Object[] _rp, Method _m, AbstractConnection _conn) static Object
convertRV
(Object[] _rp, Type[] _types, Method _m, AbstractConnection _conn) static Object
executeRemoteMethod
(RemoteObject _ro, Method _m, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) static Object
executeRemoteMethod
(RemoteObject _ro, Method _m, String[] _customSignatures, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) Executes a remote method.static Object
executeRemoteMethod
(RemoteObject _ro, Method _m, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args)
-
Field Details
-
CALL_TYPE_SYNC
public static final int CALL_TYPE_SYNC- See Also:
-
CALL_TYPE_ASYNC
public static final int CALL_TYPE_ASYNC- See Also:
-
CALL_TYPE_CALLBACK
public static final int CALL_TYPE_CALLBACK- See Also:
-
-
Constructor Details
-
RemoteInvocationHandler
-
-
Method Details
-
getRemote
-
invoke
- Specified by:
invoke
in interfaceInvocationHandler
- Throws:
Throwable
-
convertRV
public static Object convertRV(Object[] _rp, Method _m, AbstractConnection _conn) throws DBusException - Throws:
DBusException
-
convertRV
public static Object convertRV(Object[] _rp, Type[] _types, Method _m, AbstractConnection _conn) throws DBusException - Throws:
DBusException
-
executeRemoteMethod
public static Object executeRemoteMethod(RemoteObject _ro, Method _m, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) throws DBusException - Throws:
DBusException
-
executeRemoteMethod
public static Object executeRemoteMethod(RemoteObject _ro, Method _m, String[] _customSignatures, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) throws DBusException Executes a remote method.- Parameters:
_ro
- remote object_m
- method to call_customSignatures
- array of custom signatures which will be used for variants_types
- array of types_conn
- connection_syncmethod
- true if the method is executed synchronously_callback
- callback used when async method call_args
- arguments to pass to method- Returns:
- Object, maybe null
- Throws:
DBusException
- when call fails
-
executeRemoteMethod
public static Object executeRemoteMethod(RemoteObject _ro, Method _m, Type[] _types, AbstractConnection _conn, int _syncmethod, CallbackHandler<?> _callback, Object... _args) throws DBusException - Throws:
DBusException
-