public static synchronized org.omg.CORBA.TypeCode type() {
   if (__typeCode == null) {
     __typeCode =
         org.omg
             .CORBA
             .ORB
             .init()
             .create_interface_tc(org.omg.DynamicAny.DynAnyFactoryHelper.id(), "DynAnyFactory");
   }
   return __typeCode;
 }
Exemplo n.º 2
0
  /**
   * create a new IdlWriter for the default JacORB IR which writes to a specific PrintStream
   *
   * @param orb
   * @param ps a PrintStream
   * @param logger
   */
  public IdlWriter(ORB orb, PrintStream ps, Logger logger) {
    printStream = ps;
    this.logger = logger;

    try {
      ir =
          org.omg.CORBA.RepositoryHelper.narrow(
              orb.resolve_initial_references("InterfaceRepository"));
      factory =
          org.omg.DynamicAny.DynAnyFactoryHelper.narrow(
              orb.resolve_initial_references("DynAnyFactory"));
    } catch (org.omg.CORBA.ORBPackage.InvalidName e) {
      throw new INTERNAL(e.toString());
    }

    if (ir == null) {
      logger.error("No IR configured! Exiting..");
      System.exit(1);
    }
  }