org.omg.CORBA.TypeCodePackage
import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;
public class GetTypeCode {
public static void main(String[] args) {
ORB orb = ORB.init(args, null);
// Get the TypeCode for the class
TypeCode typeCode = orb.create_class_tc(SomeClass.class);
// Print the TypeCode
System.out.println(typeCode);
}
}import org.omg.CORBA.ORB;
import org.omg.CORBA.TypeCode;
public class GetTypeCode {
public static void main(String[] args) {
ORB orb = ORB.init(args, null);
// Get the TypeCode for the interface
TypeCode typeCode = orb.create_interface_tc(SomeInterface.class);
// Print the TypeCode
System.out.println(typeCode);
}
}