Adjusting and cleaning up ZigbeeTest to install Vigilia ZigBee gateway and devices.
[iot2.git] / iotjava / iotrmi / Java / sample / CallBack_CBSkeleton.java
index 4149630600cbedd1f73bbddba9af58d65d3f9f54..7eaf1ff555e08bd68d105b916d5022725b9d28b4 100644 (file)
@@ -8,11 +8,6 @@ import iotrmi.Java.IoTRMIObject;
 public class CallBack_CBSkeleton implements CallBackInterface {
 
        private int objectId = 0;       // Default value is 0
-       private final static String[] methodSignatures = {
-
-               "intprintInt()",
-               "voidsetInt(int)"
-       };
        private CallBackInterface cb;
 
 
@@ -47,7 +42,7 @@ public class CallBack_CBSkeleton implements CallBackInterface {
        
        public void ___setInt(IoTRMIObject rmiObj) {
                Object[] paramObj = rmiObj.getMethodParams(new Class<?>[] { int.class }, 
-                       new Class<?>[] { null }, new Class<?>[] { null });
+                       new Class<?>[] { null });
                setInt((int) paramObj[0]);
        }
        
@@ -60,18 +55,11 @@ public class CallBack_CBSkeleton implements CallBackInterface {
                        case 0: ___printInt(rmiObj); break;
                        case 1: ___setInt(rmiObj); break;
                        default: 
-                               throw new Error("Signature not recognized!");
+                               throw new Error("Method Id not recognized!");
                }
        }
 
 
-       // Return method signatures
-       public static String[] getMethodSignatures() {
-
-               return methodSignatures;
-       }
-
-
        public static void main(String[] args) throws Exception {
 
        }