Ejemplo n.º 1
0
  /**
   * Creates a new DynAny object whose value is a deep copy of the DynAny on which it is invoked.
   * The operation is polymorphic, that is, invoking it on one of the types derived from DynAny,
   * such as DynStruct, creates the derived type but returns its reference as the DynAny base type.
   *
   * @return a deep copy of the DynAny object
   */
  public org.omg.DynamicAny.DynAny copy() {
    org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke("copy", _opsClass);
    DynStructOperations $self = (DynStructOperations) $so.servant;

    try {
      return $self.copy();
    } finally {
      _servant_postinvoke($so);
    }
  } // copy