Modul org.freedesktop.dbus
Klasse DBusBoundPropertyHandler
java.lang.Object
org.freedesktop.dbus.connections.base.AbstractConnectionBase
org.freedesktop.dbus.connections.base.ConnectionMethodInvocation
org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler
- Alle implementierten Schnittstellen:
Closeable,AutoCloseable
- Bekannte direkte Unterklassen:
ConnectionMessageHandler
public abstract sealed class DBusBoundPropertyHandler
extends ConnectionMethodInvocation
permits ConnectionMessageHandler
Abstract class containing methods for handling DBus properties and
Part of the
DBusBoundProperty annotation. Part of the
AbstractConnectionBase → ConnectionMethodInvocation
→ DBusBoundPropertyHandler → ConnectionMessageHandler → AbstractConnection hierarchy.- Seit:
- 5.1.0 - 2024-03-18
- Autor:
- hypfvieh
-
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedDBusBoundPropertyHandler(TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandledhandleDBusBoundProperties(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) Method which handles the magic related toDBusBoundPropertyannotation.
It takes care of proper method calling (calling Get/Set stuff on DBus Properties interface)
and will also take care of converting wrapped Variant types.protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandledhandleGet(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) Called when 'Get' method of DBusPropertiesinterface is called.protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandledhandleGetAll(ExportedObject _exportObject, MethodCall _methodCall) Called when 'GetAll' method of DBusPropertiesinterface is called.protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandledhandleSet(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) Called when 'Set' method of DBusPropertiesinterface is called.Von Klasse geerbte Methoden org.freedesktop.dbus.connections.base.ConnectionMethodInvocation
handleException, invokedMethodReply, invokeMethod, invokeMethodAndReply, queueInvokeMethod, setupAndInvokeVon Klasse geerbte Methoden org.freedesktop.dbus.connections.base.AbstractConnectionBase
close, connect, createReaderThread, disconnect, disconnect, getAddress, getBusAddress, getCallbackManager, getCallInfo, getDisconnectCallback, getError, getExportedObject, getExportedObject, getExportedObject, getExportedObjects, getFallbackContainer, getGenericHandledSignals, getHandledSignals, getImportedObjects, getInfoMap, getLogger, getMachineId, getMessageFactory, getObjectTree, getPendingCalls, getPendingErrorQueue, getReceivingService, getTransport, getTransportConfig, internalDisconnect, isConnected, listen, rejectUnknownProperty, sendMessage, setDisconnectCallback, toString, unExportObject
-
Konstruktordetails
-
DBusBoundPropertyHandler
protected DBusBoundPropertyHandler(TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) throws DBusException - Löst aus:
DBusException
-
-
Methodendetails
-
handleDBusBoundProperties
protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandled handleDBusBoundProperties(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) throws DBusException Method which handles the magic related toDBusBoundPropertyannotation.
It takes care of proper method calling (calling Get/Set stuff on DBus Properties interface)
and will also take care of converting wrapped Variant types.- Parameter:
_exportObject- exported object_methodCall- method to call_params- parameter to pass to method_conn- connection- Gibt zurück:
- Any of:
DBusBoundPropertyHandler.PropHandled.HANDLEDwhen property was defined by annotation and was handled by this method
DBusBoundPropertyHandler.PropHandled.NOT_HANDLEDwhen object implements DBus Properties but the requested property was not defined by annotation
DBusBoundPropertyHandler.PropHandled.NO_PROPERTYwhen property is not defined by annotation and object does not implement DBus Properties - Löst aus:
DBusException- when something fails
-
handleGetAll
protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandled handleGetAll(ExportedObject _exportObject, MethodCall _methodCall) throws DBusException Called when 'GetAll' method of DBusPropertiesinterface is called.- Parameter:
_exportObject- exported object_methodCall- method call- Gibt zurück:
DBusBoundPropertyHandler.PropHandled.HANDLEDwhen call was handledDBusBoundPropertyHandler.PropHandled.NOT_HANDLEDotherwise- Löst aus:
DBusException- when handling fails
-
handleGet
protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandled handleGet(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) Called when 'Get' method of DBusPropertiesinterface is called.- Parameter:
_exportObject- exported object_methodCall- method call_params- parameters for method call- Gibt zurück:
- Any of:
DBusBoundPropertyHandler.PropHandled.HANDLEDwhen property was defined by annotation and was handled by this method
DBusBoundPropertyHandler.PropHandled.NOT_HANDLEDwhen object implements DBus Properties but the requested property was not defined by annotation
DBusBoundPropertyHandler.PropHandled.NO_PROPERTYwhen property is not defined by annotation and object does not implement DBus Properties
-
handleSet
protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandled handleSet(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) Called when 'Set' method of DBusPropertiesinterface is called.- Parameter:
_exportObject- exported object_methodCall- method call_params- method call parameters- Gibt zurück:
DBusBoundPropertyHandler.PropHandled.HANDLEDwhen property was definied by annotation,DBusBoundPropertyHandler.PropHandled.NOT_HANDLEDotherwise
-