Package org.freedesktop.dbus.annotations
Annotation Type DBusProperty
-
@Target(TYPE) @Retention(RUNTIME) @Repeatable(DBusProperties.class) public @interface DBusProperty
Appends information about properties in the interface. The annotated properties are added to the introspection data. In case of complex type of the property please useTypeRef.Usage:
@DBusInterfaceName("com.example.Bar") @DBusProperty(name = "Name", type = String.class) @DBusProperty(name = "ListOfVariables", type = List.class, access = Access.READ) @DBusProperty(name = "MapOfStringList", type = ComplexTypeWithMapAndList.class, access = Access.READ) public interface Bar extends DBusInterface { // TypeRef allows to provide detailed information about type interface ComplexTypeWithMapAndList extends TypeRef<Map<String, List<String>>> { } }- See Also:
DBusInterface,TypeRef
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringnameProperty name
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description DBusProperty.AccessaccessProperty access typejava.lang.Class<?>typetype of the property, in case of complex types please create custom interface that extendsTypeRef
-
-
-
-
type
java.lang.Class<?> type
type of the property, in case of complex types please create custom interface that extendsTypeRef- Returns:
- type
- Default:
- org.freedesktop.dbus.types.Variant.class
-
-
-
access
DBusProperty.Access access
Property access type- Returns:
- access
- Default:
- org.freedesktop.dbus.annotations.DBusProperty.Access.READ_WRITE
-
-