Annotation Interface DBusMethod


@Retention(RUNTIME) @Target(METHOD) public @interface DBusMethod
Marks a method as a D-Bus method.

This annotation is used to expose Java methods as D-Bus methods. The method name in D-Bus will match the Java method name unless explicitly specified.

Example usage:


 @DBusMethod(name = "GetStatus")
 public String getStatus() {
     return "active";
 }
 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The D-Bus method name.
  • Element Details

    • name

      String name
      The D-Bus method name. If not specified, the Java method name is used.
      Returns:
      the D-Bus method name
      Default:
      ""