Ejemplo n.º 1
0
  /**
   * Destroys a DynAny object. This operation frees any resources used to represent the data value
   * associated with a DynAny object. It must be invoked on references obtained from one of the
   * creation operations on the ORB interface or on a reference returned by DynAny.copy() to avoid
   * resource leaks. Invoking destroy on component DynAny objects (for example, on objects returned
   * by the current_component operation) does nothing. Destruction of a DynAny object implies
   * destruction of all DynAny objects obtained from it. That is, references to components of a
   * destroyed DynAny become invalid. Invocations on such references raise OBJECT_NOT_EXIST. It is
   * possible to manipulate a component of a DynAny beyond the life time of the DynAny from which
   * the component was obtained by making a copy of the component with the copy operation before
   * destroying the DynAny from which the component was obtained.
   */
  public void destroy() {
    org.omg.CORBA.portable.ServantObject $so = _servant_preinvoke("destroy", _opsClass);
    DynStructOperations $self = (DynStructOperations) $so.servant;

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