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
ModifiziererKonstruktorBeschreibungprotected
DBusBoundPropertyHandler
(TransportConfig _transportConfig, ReceivingServiceConfig _rsCfg) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandled
handleDBusBoundProperties
(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) Method which handles the magic related toDBusBoundProperty
annotation.
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.PropHandled
handleGet
(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) Called when 'Get' method of DBusProperties
interface is called.protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandled
handleGetAll
(ExportedObject _exportObject, MethodCall _methodCall) Called when 'GetAll' method of DBusProperties
interface is called.protected org.freedesktop.dbus.connections.base.DBusBoundPropertyHandler.PropHandled
handleSet
(ExportedObject _exportObject, MethodCall _methodCall, Object[] _params) Called when 'Set' method of DBusProperties
interface is called.Von Klasse geerbte Methoden org.freedesktop.dbus.connections.base.ConnectionMethodInvocation
handleException, invokedMethodReply, invokeMethod, invokeMethodAndReply, queueInvokeMethod, setupAndInvoke
Von 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 toDBusBoundProperty
annotation.
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.HANDLED
when property was defined by annotation and was handled by this method
DBusBoundPropertyHandler.PropHandled.NOT_HANDLED
when object implements DBus Properties but the requested property was not defined by annotation
DBusBoundPropertyHandler.PropHandled.NO_PROPERTY
when 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 DBusProperties
interface is called.- Parameter:
_exportObject
- exported object_methodCall
- method call- Gibt zurück:
DBusBoundPropertyHandler.PropHandled.HANDLED
when call was handledDBusBoundPropertyHandler.PropHandled.NOT_HANDLED
otherwise- 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 DBusProperties
interface is called.- Parameter:
_exportObject
- exported object_methodCall
- method call_params
- parameters for method call- Gibt zurück:
- Any of:
DBusBoundPropertyHandler.PropHandled.HANDLED
when property was defined by annotation and was handled by this method
DBusBoundPropertyHandler.PropHandled.NOT_HANDLED
when object implements DBus Properties but the requested property was not defined by annotation
DBusBoundPropertyHandler.PropHandled.NO_PROPERTY
when 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 DBusProperties
interface is called.- Parameter:
_exportObject
- exported object_methodCall
- method call_params
- method call parameters- Gibt zurück:
DBusBoundPropertyHandler.PropHandled.HANDLED
when property was definied by annotation,DBusBoundPropertyHandler.PropHandled.NOT_HANDLED
otherwise
-