Testing enum and callback combination
[iot2.git] / iotjava / iotrmi / Java / basics / TestClass.java
index 51aed4ca505908fe0e7abec17890015221b113c4..411e7db16d9f6902ee259cb9662481d742761c87 100644 (file)
@@ -413,6 +413,19 @@ public class TestClass implements TestClassInterface {
        }
 
 
+       public Enum[] handleCallbackEnum(Enum en[], char c, List<CallBackInterfaceWithCallBack> _cb) {
+
+               for (CallBackInterfaceWithCallBack cb : _cb) {
+                       cblist.add(cb);
+                       System.out.println("Registering callback objects in list!");
+               }
+
+               System.out.println("Char: " + c);
+
+               return en;
+       }
+
+
        // Getters
        public String sumArray(String[] newA) {