1 package org.jacorb.util; 2 3 6 public class ValueHandler { 7 8 public static String getRMIRepositoryID (Class clz) 9 { 10 return javax.rmi.CORBA.Util.createValueHandler() 11 .getRMIRepositoryID (clz); 12 } 13 14 public static org.omg.SendingContext.RunTime getRunTimeCodeBase() 15 { 16 return javax.rmi.CORBA.Util.createValueHandler() 17 .getRunTimeCodeBase(); 18 } 19 20 public static java.io.Serializable readValue 21 (org.omg.CORBA.portable.InputStream in, 22 int offset, Class clz, String repositoryID, 23 org.omg.SendingContext.RunTime sender) 24 { 25 return javax.rmi.CORBA.Util.createValueHandler() 26 .readValue (in, offset, clz, repositoryID, sender); 27 } 28 29 public static void writeValue (org.omg.CORBA.portable.OutputStream out, 30 java.io.Serializable value) 31 { 32 javax.rmi.CORBA.Util.createValueHandler() 33 .writeValue (out, value); 34 } 35 36 public static boolean isCustomMarshaled (Class clz) 37 { 38 return javax.rmi.CORBA.Util.createValueHandler() 39 .isCustomMarshaled (clz); 40 } 41 42 public static java.io.Serializable writeReplace ( 43 java.io.Serializable value) 44 { 45 return javax.rmi.CORBA.Util.createValueHandler() 46 .writeReplace (value); 47 } 48 49 52 public static Class loadClass (String className, 53 String remoteCodebase, 54 ClassLoader loader) 55 throws ClassNotFoundException 56 { 57 return javax.rmi.CORBA.Util.loadClass (className, 58 remoteCodebase, 59 loader); 60 } 61 62 65 public static String getCodebase (Class clz) 66 { 67 return javax.rmi.CORBA.Util.getCodebase (clz); 68 } 69 70 73 public static Object portableRemoteObject_narrow (Object narrowFrom, 74 Class narrowTo) 75 throws ClassCastException 76 { 77 return javax.rmi.PortableRemoteObject.narrow (narrowFrom, narrowTo); 78 } 79 80 } 81 | Popular Tags |