NetworkManager.ActivateConnection and java-dbus

Matthew Johnson dbus at matthew.ath.cx
Sun May 5 18:21:35 PDT 2013


On Mon Apr 29 15:47, Simon McVittie wrote:
> Does DBusInterface have an accessor that returns a Path? If not, I think
> that'd be a reasonable feature request; then you could call either
> 
>     ActivateConnection(..., new Path("/"))
> 
> or
> 
>     ActivateConnection(..., mySpecificObject.getPath())

Well, the problem is that DBusInterface doesn't really have _anything_ on it
(it's an Interface, which is pure-virtual in Java) and might not be associated
with a path at all (certainly doesn't have to be remote). Possibly it was a
mistake to allow you to sometimes have one sent as a path (I would have to look
up how/when that works). Path is the thing which always works in that slot. Not
that I'd mind someone fixing things to work better in this area if they have a
clean idea. It's a shame Java doesn't have nice conversion operators to allow
the method to be declared as Path (so the serialisation works right) and then
pass it sensible things and have the conversion Just Work.

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20130506/b3080006/attachment.pgp>


More information about the dbus mailing list