Testing complex callbacks invocation; fixing subtle bugs
[iot2.git] / iotjava / iotrmi / Java / basics / TestClass.java
index 42e53c2cdefdde17047629f3e3eb9a98514f6ca1..89baf94602f6d9372c4c45f5d24fbcd392cd2a0b 100644 (file)
@@ -61,6 +61,18 @@ public class TestClass implements TestClassInterface {
        }
 
 
+       public void registerCallbackComplex(int in, List<CallBackInterfaceWithCallBack> _cb, double db) {
+
+               for (CallBackInterfaceWithCallBack cb : _cb) {
+                       cblist.add(cb);
+                       System.out.println("Registering callback objects in list!");
+               }
+
+               System.out.println("Integer: " + in);
+               System.out.println("Double: " + db);
+       }
+
+
        public int callBack() {
 
                int sum = 0;