Using this annotation means you do not need to implement the Properties
interface and provide your own handling of Properties#Get(String, String),
Properties#GetAll(String) and Properties#Set(String, String, Object).
Each DBus property should map to either one or two methods. If it has
DBusBoundProperty#access() of Access#READ then a single getter
method should be created with no parameters. The type of property will be determined by
the return type of the method, and the name of the property will be derived from the method name,
with either the get or the is stripped off.
@DBusBoundProperty public String getMyStringProperty(); @DBusBoundProperty public boolean isMyBooleanProperty();If it has
DBusBoundProperty#access() of Access#WRITE then a single setter
method should be created with a single parameter and no return type. The type of the property
will be determined by that parameter, and the name of the property will be derived from the
method name, with either the get or the is stripped off.
@DBusBoundProperty public void setMyStringProperty(String _property);If it has
DBusBoundProperty#access() of Access#READ_WRITE, the both of
the above methods should be provided.
Any of the name, type and access attributes that would
normally be automatically determined, may be overridden using the corresponding annotation attributes.
It is allowed if you wish to mix use of DBusProperty and DBusBoundProperty as
long as individual properties are not repeated.
org.freedesktop.dbus.interfaces.DBusInterface , org.freedesktop.dbus.annotations.DBusProperty , org.freedesktop.dbus.annotations.DBusProperties , org.freedesktop.dbus.TypeRef
| Modifier and Type | Method and Description |
|---|---|
| public DBusProperty. | |
| public PropertiesEmitsChangedSignal. | Returns: emitChangeSignalAnnotation org.freedesktop.DBus.Property.EmitsChangedSignal. |
| public String | |
| public Class | Returns: typeType of the property, in case of complex types please create custom interface that extends |
| access | back to summary |
|---|---|
| public DBusProperty. Property access type. When
| |
| emitChangeSignal | back to summary |
|---|---|
| public PropertiesEmitsChangedSignal. Annotation org.freedesktop.DBus.Property.EmitsChangedSignal.
From DBUS Specification:
| |
| name | back to summary |
|---|---|
| public String name() Property name. If not supplied, the property name will be inferred from the method. See class documentation for semantics.
| |
| type | back to summary |
|---|---|
| public Class Type of the property, in case of complex types please create custom interface that extends
| |