Class PropRefRemoteHandler
java.lang.Object
org.freedesktop.dbus.propertyref.PropRefRemoteHandler
Contains
DBusBoundProperty code used for remote method invokation.- Since:
- 5.0.0 - 2023-10-20
- Author:
- hypfvieh
-
Method Summary
Modifier and TypeMethodDescriptionstatic MethodgetPropertiesMethod(String _method, Class<?>... _signature) static ObjecthandleDBusBoundProperty(AbstractConnection _conn, RemoteObject _remote, Method _method, Object[] _args) Handles theDBusBoundPropertyannotation.
The special handling is needed because when this annotation is used the
object uses the DBusPropertiesinterface without explicitly implementing it.
In that case we have to fake the presents of this interface and also take care about
the types which have to be wrapped inVariant
(due to DBus Properties specify that every property value is aVariant).
-
Method Details
-
handleDBusBoundProperty
public static Object handleDBusBoundProperty(AbstractConnection _conn, RemoteObject _remote, Method _method, Object[] _args) throws DBusException Handles theDBusBoundPropertyannotation.
The special handling is needed because when this annotation is used the
object uses the DBusPropertiesinterface without explicitly implementing it.
In that case we have to fake the presents of this interface and also take care about
the types which have to be wrapped inVariant
(due to DBus Properties specify that every property value is aVariant).- Parameters:
_conn- connection_remote- remote object_method- annotated method which was called_args- arguments used if this was a call to a setter- Returns:
- remote invocation result
- Throws:
DBusException- when DBus call fails
-
getPropertiesMethod
-