本文整理了Java中org.omg.CORBA.Object._is_equivalent()
方法的一些代码示例,展示了Object._is_equivalent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Object._is_equivalent()
方法的具体详情如下:
包路径:org.omg.CORBA.Object
类名称:Object
方法名:_is_equivalent
暂无
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public boolean _is_equivalent(org.omg.CORBA.Object other)
{
return object._is_equivalent( other ) ;
}
代码示例来源: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.glassfish.main.ejb/ejb-container
public boolean equals(Object obj) {
boolean result = (obj == this); //Most efficient
if ((result == false) && (obj != null)) { //Do elaborate checks
if (obj instanceof RemoteBusinessWrapperBase) {
RemoteBusinessWrapperBase remoteBWB =
(RemoteBusinessWrapperBase) obj;
boolean hasSameBusinessInterface =
(remoteBWB.hashCode_ == hashCode_) &&
remoteBWB.businessInterface_.equals(businessInterface_);
if (hasSameBusinessInterface) {
org.omg.CORBA.Object other = (org.omg.CORBA.Object) remoteBWB.stub_;
org.omg.CORBA.Object me = (org.omg.CORBA.Object) stub_;
result = me._is_equivalent(other);
}
}
}
return result;
}
代码示例来源:origin: org.glassfish.ejb/ejb-container
public boolean equals(Object obj) {
boolean result = (obj == this); //Most efficient
if ((result == false) && (obj != null)) { //Do elaborate checks
if (obj instanceof RemoteBusinessWrapperBase) {
RemoteBusinessWrapperBase remoteBWB =
(RemoteBusinessWrapperBase) obj;
boolean hasSameBusinessInterface =
(remoteBWB.hashCode_ == hashCode_) &&
remoteBWB.businessInterface_.equals(businessInterface_);
if (hasSameBusinessInterface) {
org.omg.CORBA.Object other = (org.omg.CORBA.Object) remoteBWB.stub_;
org.omg.CORBA.Object me = (org.omg.CORBA.Object) stub_;
result = me._is_equivalent(other);
}
}
}
return result;
}
代码示例来源:origin: org.jboss.narayana.blacktie/blacktie-jatmibroker-xatmi
public TransactionImpl(String controlIOR) throws ConfigurationException, TransactionException {
TransactionImpl curr = current();
timeout = -1;
try {
AtmiBrokerEnvXML client = new AtmiBrokerEnvXML();
Properties properties = client.getProperties();
orbManagement = OrbManagement.getInstance(properties);
} catch (org.omg.CORBA.UserException cue) {
throw new TransactionException(cue.getMessage(), cue);
}
org.omg.CORBA.Object obj = orbManagement.getOrb().string_to_object(controlIOR);
if (curr != null) {
log.debug("current() != null comparing IORs");
String pIOR = curr.getControlIOR();
org.omg.CORBA.Object pObj = orbManagement.getOrb().string_to_object(pIOR);
log.debug("pIOR=" + pIOR + " pObj=" + pObj);
if (pObj != null && pObj._is_equivalent(obj)) {
log.debug("Different IORs same object");
ThreadActionData.popAction();
} else {
log.info("Different IORs and different object");
throw new TransactionException("Nested transactions are not supported");
}
}
control = org.omg.CosTransactions.ControlHelper.narrow(obj);
ThreadActionData.pushAction(this);
setTerminator(control);
}
代码示例来源:origin: org.apache.yoko/yoko-core
else
return ((org.omg.CORBA.Object) v1)
._is_equivalent((org.omg.CORBA.Object) v2);
&& v2 instanceof org.omg.CORBA.Object) {
return ((org.omg.CORBA.Object) v1)
._is_equivalent((org.omg.CORBA.Object) v2);
} else {
代码示例来源:origin: org.apache.yoko/yoko-core
return extract_Object()._is_equivalent(any.extract_Object());
if (value_ instanceof org.omg.CORBA.Object
&& any.value_ instanceof org.omg.CORBA.Object) {
return extract_Object()._is_equivalent(any.extract_Object());
} else if (value_ instanceof InputStream
&& any.value_ instanceof InputStream) {
内容来源于网络,如有侵权,请联系作者删除!