dbus-java properties bindings

Pavel Březina <[email protected]>
Newsgroups gmane.comp.freedesktop.dbus
Message-ID <[email protected]>
Hi,
I'm trying to create java interface for sssd dbus interface. I do 
understand how to map methods into java but what is the proper way to 
handle properties?

Example:

package org.freedesktop.sssd

public interface infopipe
{
     public Path[] ListDomains();

     public interface Domains
     {
         /* access properties from here something like: */
         public String name;
     }
}

I'm trying to find a way how to request name property of 
infopipe.Domains interface like:

infopipe.Domains dom = 
conn.getRemoteObject("org.freedesktop.sssd.infopipe", 
"/org/freedesktop/sssd/infopipe/Domains/dom", infopipe.Domains.class);

System.out.println(dom.name);

Is it possible? Or the only way of requesting property is via

Properties props = conn.getRemoteObject("org.freedesktop.sssd.infopipe", 
path, Properties.class);

String name = props.Get("org.freedesktop.sssd.infopipe.Domains", "name");

Thanks.

Please cc me, I am not subscribed.
_______________________________________________
dbus mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dbus
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.