org.omg.CORBA_2_3.portable.OutputStream.write_abstract_interface()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(89)

本文整理了Java中org.omg.CORBA_2_3.portable.OutputStream.write_abstract_interface()方法的一些代码示例,展示了OutputStream.write_abstract_interface()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OutputStream.write_abstract_interface()方法的具体详情如下:
包路径:org.omg.CORBA_2_3.portable.OutputStream
类名称:OutputStream
方法名:write_abstract_interface

OutputStream.write_abstract_interface介绍

暂无

代码示例

代码示例来源:origin: wildfly/wildfly

public void write(OutputStream out, Object obj) {
    out.write_abstract_interface(obj);
  }
}

代码示例来源:origin: org.jacorb/jacorb

/**
 * Operation write_Abstract
 */
public void write_Abstract( java.lang.Object value )
{
  ( ( org.omg.CORBA_2_3.portable.OutputStream ) delegate ).write_abstract_interface( value );
}

代码示例来源:origin: org.apache.yoko/yoko-rmi-impl

/** Write an instance of this value to a CDR stream */
public void write(org.omg.CORBA.portable.OutputStream out, Object value) {
  org.omg.CORBA_2_3.portable.OutputStream _out = (org.omg.CORBA_2_3.portable.OutputStream) out;
  _out.write_abstract_interface(value);
}

代码示例来源:origin: org.apache.yoko/yoko-spec-corba

public static void write(org.omg.CORBA.portable.OutputStream out,
      java.lang.Object value) {
    org.omg.CORBA_2_3.portable.OutputStream out_2_3 = (org.omg.CORBA_2_3.portable.OutputStream) out;
    out_2_3.write_abstract_interface(value);
  }
}

代码示例来源:origin: org.jboss.eap/wildfly-iiop-openjdk

public void write(OutputStream out, Object obj) {
    out.write_abstract_interface(obj);
  }
}

代码示例来源:origin: org.wildfly/wildfly-iiop-openjdk

public void write(OutputStream out, Object obj) {
    out.write_abstract_interface(obj);
  }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

/**
 * Writes a java.lang.Object as either a value or a CORBA Object.
 * If <code>obj</code> is a value object or a stub object, it is written to
 * <code>out.write_abstract_interface(java.lang.Object)</code>. If <code>obj</code> is an exported
 * RMI-IIOP server object, the tie is found and wired to <code>obj</code>,
 * then written to <code>out.write_abstract_interface(java.lang.Object)</code>.
 * @param out the stream in which to write the object.
 * @param obj the object to write.
 */
public void writeAbstractObject( OutputStream out, java.lang.Object obj )
{
  //allow the object to be replaced
  Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj);
  // Make sure we have a connected object, then
  // write it out...
  Object newObj = Utility.autoConnect(replacedObj,out.orb(),false);
  ((org.omg.CORBA_2_3.portable.OutputStream)out).write_abstract_interface(newObj);
}

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

/**
 * Writes a java.lang.Object as either a value or a CORBA Object. If <code>obj</code> is a value object or a stub
 * object, it is written to <code>out.write_abstract_interface(java.lang.Object)</code>. If <code>obj</code> is an
 * exported RMI-IIOP server object, the tie is found and wired to <code>obj</code>, then written to
 * <code>out.write_abstract_interface(java.lang.Object)</code>.
 * 
 * @param out
 *            the stream in which to write the object.
 * @param obj
 *            the object to write.
 */
public void writeAbstractObject(OutputStream out, java.lang.Object obj)
{
  //allow the object to be replaced
  Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj);
  // Make sure we have a connected object, then
  // write it out...
  Object newObj = Utility.autoConnect(replacedObj, out.orb(), false);
  ((org.omg.CORBA_2_3.portable.OutputStream) out).write_abstract_interface(newObj);
}

代码示例来源:origin: jboss/jboss-javaee-specs

/**
 * Writes a java.lang.Object as either a value or a CORBA Object. If <code>obj</code> is a value object or a stub
 * object, it is written to <code>out.write_abstract_interface(java.lang.Object)</code>. If <code>obj</code> is an
 * exported RMI-IIOP server object, the tie is found and wired to <code>obj</code>, then written to
 * <code>out.write_abstract_interface(java.lang.Object)</code>.
 * 
 * @param out
 *            the stream in which to write the object.
 * @param obj
 *            the object to write.
 */
public void writeAbstractObject(OutputStream out, java.lang.Object obj)
{
  //allow the object to be replaced
  Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj);
  // Make sure we have a connected object, then
  // write it out...
  Object newObj = Utility.autoConnect(replacedObj, out.orb(), false);
  ((org.omg.CORBA_2_3.portable.OutputStream) out).write_abstract_interface(newObj);
}

代码示例来源:origin: org.apache.yoko/yoko-rmi-impl

public void writeAbstractObject(org.omg.CORBA.portable.OutputStream out,
                Object obj) {
  logger.finer("writeAbstractObject.1 " + " out=" + out);
  if (obj instanceof org.omg.CORBA.Object || obj instanceof Serializable) {
    // skip //
  } else if (obj instanceof Remote) {
    org.omg.CORBA.Object objref = null;
    try {
      objref = (org.omg.CORBA.Object) PortableRemoteObject
          .toStub((Remote) obj);
    } catch (java.rmi.NoSuchObjectException ex) {
    }
    if (objref == null) {
      try {
        PortableRemoteObject.exportObject((Remote) obj);
        objref = (org.omg.CORBA.Object) PortableRemoteObject
            .toStub((Remote) obj);
      } catch (RemoteException ex) {
        throw (MARSHAL) new MARSHAL("unable to export object").initCause(ex);
      }
    }
    obj = objref;
  }
  org.omg.CORBA_2_3.portable.OutputStream out_ = (org.omg.CORBA_2_3.portable.OutputStream) out;
  logger.finer("writeAbstractObject.2 " + " out=" + out);
  out_.write_abstract_interface(obj);
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

((org.omg.CORBA_2_3.portable.OutputStream)s).write_abstract_interface(o);
break;

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

((org.omg.CORBA_2_3.portable.OutputStream) s).write_abstract_interface(o);
break;

代码示例来源:origin: jboss/jboss-javaee-specs

((org.omg.CORBA_2_3.portable.OutputStream) s).write_abstract_interface(o);
break;

代码示例来源:origin: org.jacorb/jacorb

.write_abstract_interface(value);
break;

相关文章