Annotation Interface DBusSignal


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

This annotation is used to mark methods that emit D-Bus signals. The method should typically return void and its parameters define the signal arguments.

Example usage:


 @DBusSignal(name = "StatusChanged")
 public void emitStatusChanged(String oldStatus, String newStatus) {
     // Signal emission handled by framework
 }
 
  • Optional Element Summary

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

    • name

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