When defining an interface in AllJoyn XML fomat (currently DBus introspection format), one can define a method with several out parameters. But when using the Java binding, there is obviously only one return value.
I've seen we can use Mutable.StringValue, Mutable.IntegerValue and Mutable.ShortValue in java to wrap java type and add the in/out semantic.
- how do we know which out parameter is used as a return value (the last one?) and whose are wrapped in a Mutable class ?
- how do we manage other out parameter type ?
Edit 04/04/2014 - 09h00
To make things more clear, I add an example : let's say you have an XML interface definition with several out parameters :
<method name="severalOutParamsMethods"> <arg type="s" direction="in"/> <arg type="s" direction="out"/> <arg type="s" direction="out"/> </method>
Given this interface, how should I map this on a java interface ? My current approach is to use the first out parameter as a return value, and the followings as paramaters wrapped in a Mutable.String object. For full disclosure, I'm working on a dynamic java binding, so my question is not really how I could do that with the current binding (although that would be an interesting question too) but more how should a dynamic binding ideally handle this case.