org.omg.CORBA.Object类的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(174)

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

Object介绍

暂无

代码示例

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

throw new org.omg.CORBA.BAD_PARAM();
  ref._release();

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

/**
 * <p>
 * Determines if the supplied object is non_existent
 * </p>
 *
 * @param o the CORBA object being verified.
 * @return {@code true} if the object is non-existent; {@code false} otherwise.
 */
private boolean isDead(org.omg.CORBA.Object o) {
  boolean non_exist;
  try {
    non_exist = o._non_existent();
  } catch (org.omg.CORBA.SystemException e) {
    non_exist = true;
  }
  return non_exist;
}

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

public org.omg.CORBA.Object createReference(final String interfId) throws Exception {
  final org.omg.CORBA.Object corbaRef = poa.create_reference_with_id(EMPTY_BYTES, interfId);
  if (policies != null) {
    return corbaRef._set_policy_override(policies, SetOverrideType.ADD_OVERRIDE);
  } else {
    return corbaRef;
  }
}

代码示例来源:origin: com.haulmont.thirdparty/eclipselink

public static org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController narrow(org.omg.CORBA.Object obj) {
    if (obj == null) {
      return null;
    } else if (obj instanceof org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController) {
      return (org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController)obj;
    } else if (!obj._is_a(id())) {
      throw new org.omg.CORBA.BAD_PARAM();
    } else {
      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate();
      return new org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerStub(delegate);
    }
  }
}

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

public static org.omg.PortableServer.Current narrow (
  org.omg.CORBA.Object obj)
{
  if (obj == null)
    return null;
  else if (obj instanceof org.omg.PortableServer.Current)
    return (org.omg.PortableServer.Current)obj;
  else if (!obj._is_a (id ()))
    throw new org.omg.CORBA.BAD_PARAM ();
  return null;
}

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

public boolean _is_a(String repositoryIdentifier)
{
  return object._is_a( repositoryIdentifier ) ;
}

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

throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes
      .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorBadAddress)
      + ": no protocol address", org.apache.yoko.orb.OB.MinorCodes.MinorBadAddress,
  CORBANameParser parser = new CORBANameParser(fragment);
  if (!parser.isValid())
    throw new org.omg.CORBA.BAD_PARAM(
        MinorCodes
            .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorBadSchemeSpecificPart)
  org.omg.CORBA.Request request = nc._request("resolve");
throw new org.omg.CORBA.BAD_PARAM(org.apache.yoko.orb.OB.MinorCodes
    .describeBadParam(org.apache.yoko.orb.OB.MinorCodes.MinorOther)
    + ": corbaname evaluation error", org.apache.yoko.orb.OB.MinorCodes.MinorOther,

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

if (this.names.containsKey(n)) {
  org.omg.CORBA.Object ref = (org.omg.CORBA.Object) this.names.remove(n);
  ref._release();
  IIOPLogger.ROOT_LOGGER.debugf("Unbound: %s", n);
} else if (this.contexts.containsKey(n)) {
  org.omg.CORBA.Object ref = (org.omg.CORBA.Object) this.contexts.remove(n);
  ref._release();

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

public boolean _is_equivalent(org.omg.CORBA.Object other)
{
  return object._is_equivalent( other ) ;
}

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

/**
   * determine if non_existent
   */
  private boolean isDead(org.omg.CORBA.Object o)
  {
    boolean non_exist = true;
    try
    {
      non_exist = o._non_existent();
      // Code added to release the reference.
      if(!non_exist)
      {
        o._release();
      }
    }
    catch (org.omg.CORBA.NO_IMPLEMENT ni)
    {
      // not a failure, the peer is alive, it just doesn't
      // implement _non_existent()
      non_exist = false;
    }
    catch (org.omg.CORBA.SystemException e)
    {
      non_exist = true;
    }
    return non_exist;
  }
}

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

public Request _request(String operation)
{
  return object._request( operation ) ;
}

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

org.omg.CORBA.Policy policy = null;
  try {
    policy = obj._get_policy(orbPolicies[i].policy_type());
  } catch (org.omg.CORBA.INV_POLICY ex) {
vec.copyInto(p);
return obj._set_policy_override(p, org.omg.CORBA.SetOverrideType.SET_OVERRIDE);

代码示例来源:origin: org.eclipse.persistence/org.eclipse.persistence.core

public static org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController narrow(org.omg.CORBA.Object obj) {
    if (obj == null) {
      return null;
    } else if (obj instanceof org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController) {
      return (org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController)obj;
    } else if (!obj._is_a(id())) {
      throw new org.omg.CORBA.BAD_PARAM();
    } else {
      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate();
      return new org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerStub(delegate);
    }
  }
}

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

public static org.omg.PortableServer.POA narrow (org.omg.CORBA.Object obj)
  {
    if (obj == null)
      return null;
    else if (obj instanceof org.omg.PortableServer.POA)
      return (org.omg.PortableServer.POA)obj;
    else if (!obj._is_a (id ()))
     throw new org.omg.CORBA.BAD_PARAM ();
    return null;
  }
}

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

public void connect_typed_push_consumer(TypedPushConsumer typedPushConsumer)
    throws AlreadyConnected, TypeError
{
  logger_.info("connect typed_push_supplier");
  checkIsNotConnected();
  connectClient(typedPushConsumer);
  pushConsumer_ = typedPushConsumer;
  typedConsumer_ = pushConsumer_.get_typed_consumer();
  if (!typedConsumer_._is_a(supportedInterface_))
  {
    throw new TypeError();
  }
}

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

public void _release()
{
  object._release() ;
}

代码示例来源:origin: org.glassfish.main.orb/orb-iiop

/**
 * Return true if the two object references refer to the same
 * remote object.
 */
@Override
public boolean isIdentical(Remote obj1, Remote obj2) {
  if (obj1 instanceof org.omg.CORBA.Object && obj2 instanceof org.omg.CORBA.Object) { 
    org.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;
    org.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;
    return corbaObj1._is_equivalent(corbaObj2);
  } else {
    return false;  
  }       
}

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

final String _operation = _fullQualifiedOperation.substring(_idx + 2);
final Request _request = typedConsumer_._request(_operation);

代码示例来源:origin: org.eclipse.persistence/com.springsource.org.eclipse.persistence

public static org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController narrow(org.omg.CORBA.Object obj) {
    if (obj == null) {
      return null;
    } else if (obj instanceof org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController) {
      return (org.eclipse.persistence.sessions.remote.corba.sun.CORBARemoteSessionController)obj;
    } else if (!obj._is_a(id())) {
      throw new org.omg.CORBA.BAD_PARAM();
    } else {
      org.omg.CORBA.portable.Delegate delegate = ((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate();
      return new org.eclipse.persistence.sessions.remote.corba.sun._CORBARemoteSessionControllerStub(delegate);
    }
  }
}

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

throw new org.omg.CORBA.BAD_PARAM();
  ref._release();

相关文章