Revision history [back]

click to hide/show revision 1
initial version

There is a ValueChanged signal in org.alljoyn.ControlPanel.Property. I wanted get the ValueChanged signal with java.

<node xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="https://www.allseenalliance.org/schemas/introspect.xsd">
   <interface name="org.alljoyn.ControlPanel.Property">
      <property name="Version" type="q" access="read"/>
      <property name="States" type="u" access="read"/>
      <property name="OptParams" type="a{qv}" access="read"/>
      <property name="Value" type="v" access="readwrite"/>
      <signal name="MetadataChanged" />
      <signal name="ValueChanged">
         <arg type="v"/>
      </signal>
   </interface>
</node>

After I tried several things, with the code 2, I can get the valueChanged signal. I think the code 1 is better, but it does not work.

// code 1    
bus.registerSignalHandler("org.alljoyn.ControlPanel.Property", "ValueChanged", AllJoynHelper2.this, AllJoynHelper2.this.getClass().getMethod("valueChangedHandler", Variant.class));
// code 2
bus.registerSignalHandler("org.alljoyn.ioe.controlpanelservice.communication.interfaces.PropertyControl", "ValueChanged", AllJoynHelper2.this, AllJoynHelper2.this.getClass().getMethod("valueChangedHandler", Variant.class));