Class DBusObjectSkeleton.Builder<B extends DBusObjectSkeleton.Builder<B>>

java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.DBusObjectSkeleton.Builder<B>
Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
DBusObjectSkeleton

public static class DBusObjectSkeleton.Builder<B extends DBusObjectSkeleton.Builder<B>> extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
2.30
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public DBusObjectSkeleton build()
      Finish building the DBusObjectSkeleton object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to DBusObjectSkeleton.
      Overrides:
      build in class GObject.Builder<B extends DBusObjectSkeleton.Builder<B>>
      Returns:
      a new instance of DBusObjectSkeleton with the properties that were set in the Builder object.
    • setGObjectPath

      public B setGObjectPath(String gObjectPath)
      The object path where the object is exported.
      Parameters:
      gObjectPath - the value for the g-object-path property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.30
    • onAuthorizeMethod

      public B onAuthorizeMethod(DBusObjectSkeleton.AuthorizeMethodCallback handler)

      Emitted when a method is invoked by a remote caller and used to determine if the method call is authorized.

      This signal is like GDBusInterfaceSkeleton's GDBusInterfaceSkeleton::g-authorize-method signal, except that it is for the enclosing object.

      The default class handler just returns true.

      Parameters:
      handler - the signal handler
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.30
      See Also: