1 15 16 package javassist.rmi; 17 18 23 public class Sample { 24 private ObjectImporter importer; 25 private int objectId; 26 27 public Object forward(Object [] args, int identifier) { 28 return importer.call(objectId, identifier, args); 29 } 30 31 public static Object forwardStatic(Object [] args, int identifier) 32 throws RemoteException 33 { 34 throw new RemoteException("cannot call a static method."); 35 } 36 } 37 | Popular Tags |