Package org.gnome.gio
Class DBusObjectManagerClient.Builder<B extends DBusObjectManagerClient.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.DBusObjectManagerClient.Builder<B>
- Type Parameters:
B
- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
DBusObjectManagerClient
public static class DBusObjectManagerClient.Builder<B extends DBusObjectManagerClient.Builder<B>>
extends GObject.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theDBusObjectManagerClient
object.onInterfaceProxyPropertiesChanged
(DBusObjectManagerClient.InterfaceProxyPropertiesChangedCallback handler) Emitted when one or more D-Bus properties on proxy changes.Emitted when a D-Bus signal is received oninterfaceProxy
.setBusType
(BusType busType) If this property is notBusType.NONE
, thenGDBusObjectManagerClient
:connection must benull
and will be set to theGDBusConnection
obtained by calling g_bus_get() with the value of this property.setConnection
(DBusConnection connection) TheGDBusConnection
to use.setFlags
(Set<DBusObjectManagerClientFlags> flags) Flags from theGDBusObjectManagerClientFlags
enumeration.setFlags
(DBusObjectManagerClientFlags... flags) Flags from theGDBusObjectManagerClientFlags
enumeration.setGetProxyTypeDestroyNotify
(MemorySegment getProxyTypeDestroyNotify) AGDestroyNotify
for thegpointer
user_data inGDBusObjectManagerClient
:get-proxy-type-user-data.setGetProxyTypeFunc
(MemorySegment getProxyTypeFunc) TheGDBusProxyTypeFunc
to use when determining whatGType
to use for interface proxies ornull
.setGetProxyTypeUserData
(MemorySegment getProxyTypeUserData) Thegpointer
user_data to pass toGDBusObjectManagerClient
:get-proxy-type-func.The well-known name or unique name that the manager is for.setObjectPath
(String objectPath) The object path the manager is for.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theDBusObjectManagerClient
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toDBusObjectManagerClient
.- Overrides:
build
in classGObject.Builder<B extends DBusObjectManagerClient.Builder<B>>
- Returns:
- a new instance of
DBusObjectManagerClient
with the properties that were set in the Builder object.
-
setBusType
If this property is notBusType.NONE
, thenGDBusObjectManagerClient
:connection must benull
and will be set to theGDBusConnection
obtained by calling g_bus_get() with the value of this property.- Parameters:
busType
- the value for thebus-type
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setConnection
TheGDBusConnection
to use.- Parameters:
connection
- the value for theconnection
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setFlags
Flags from theGDBusObjectManagerClientFlags
enumeration.- Parameters:
flags
- the value for theflags
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setGetProxyTypeDestroyNotify
AGDestroyNotify
for thegpointer
user_data inGDBusObjectManagerClient
:get-proxy-type-user-data.- Parameters:
getProxyTypeDestroyNotify
- the value for theget-proxy-type-destroy-notify
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setGetProxyTypeFunc
TheGDBusProxyTypeFunc
to use when determining whatGType
to use for interface proxies ornull
.- Parameters:
getProxyTypeFunc
- the value for theget-proxy-type-func
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setGetProxyTypeUserData
Thegpointer
user_data to pass toGDBusObjectManagerClient
:get-proxy-type-func.- Parameters:
getProxyTypeUserData
- the value for theget-proxy-type-user-data
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setName
-
setObjectPath
-
setFlags
Flags from theGDBusObjectManagerClientFlags
enumeration.- Parameters:
flags
- the value for theflags
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
onInterfaceProxyPropertiesChanged
public B onInterfaceProxyPropertiesChanged(DBusObjectManagerClient.InterfaceProxyPropertiesChangedCallback handler) Emitted when one or more D-Bus properties on proxy changes. The local cache has already been updated when this signal fires. Note that bothchangedProperties
andinvalidatedProperties
are guaranteed to never benull
(either may be empty though).This signal exists purely as a convenience to avoid having to connect signals to all interface proxies managed by
manager
.This signal is emitted in the [thread-default main context][g-main-context-push-thread-default] that
manager
was constructed in.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-
onInterfaceProxySignal
Emitted when a D-Bus signal is received oninterfaceProxy
.This signal exists purely as a convenience to avoid having to connect signals to all interface proxies managed by
manager
.This signal is emitted in the [thread-default main context][g-main-context-push-thread-default] that
manager
was constructed in.- Parameters:
handler
- the signal handler- Returns:
- the
Builder
instance is returned, to allow method chaining - See Also:
-