public boolean equals(Object obj) { if (obj == null) return false; if (!(obj instanceof IOR)) return false; IOR other = (IOR) obj; return super.equals(obj) && typeId.equals(other.getTypeId()); }
public boolean isEquivalent(IOR ior) { Iterator<Object> myIterator = iterator(); Iterator<Object> otherIterator = ior.iterator(); while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile) (myIterator.next()); TaggedProfile otherProfile = (TaggedProfile) (otherIterator.next()); if (!myProfile.isEquivalent(otherProfile)) return false; } return myIterator.hasNext() == otherIterator.hasNext(); }
public void write_Object(org.omg.CORBA.Object ref) { if (ref == null) { IOR nullIOR = IORFactories.makeIOR(orb); nullIOR.write(parent); return; } // IDL to Java formal 01-06-06 1.21.4.2 if (ref instanceof org.omg.CORBA.LocalObject) throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE); IOR ior = ORBUtility.connectAndGetIOR(orb, ref); ior.write(parent); return; }
if (ior.isNil()) return null; String codeBase = ior.getProfile().getCodebase(); PresentationManager.StubFactory stubFactory = null; RepositoryId rid = RepositoryId.cache.getId(ior.getTypeId()); String className = rid.getClassName(); boolean isIDLInterface = rid.isIDLType();
private byte[] internalReferenceToId(org.omg.CORBA.Object reference) throws WrongAdapter { IOR ior = ORBUtility.getIOR(reference); IORTemplateList thisTemplate = ior.getIORTemplates(); ObjectReferenceFactory orf = getCurrentFactory(); IORTemplateList poaTemplate = IORFactories.getIORTemplateList(orf); if (!poaTemplate.isEquivalent(thisTemplate)) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. If ior was created in this POA, the same ID was // used for every profile through the profile templates in the currentFactory, so we will get the same result // from any profile. Iterator<Object> iter = ior.iterator(); if (!iter.hasNext()) throw iorWrapper().noProfilesInIor(); TaggedProfile prof = (TaggedProfile) (iter.next()); ObjectId oid = prof.getObjectId(); return oid.getId(); }
IIOPProfile profile = ior.getProfile(); profile = ior.getProfile(); ObjectKey objKey = profile.getObjectKey(); byte[] object_key = objKey.getBytes(orb); if (addrDisp == ProfileAddr.value) profile = ior.getProfile(); target.profile(profile.getIOPProfile()); ior.getIOPIOR()); target.ior(iorInfo);
IIOPProfile prof = ior.getProfile(); IIOPProfileTemplate profTemp = (IIOPProfileTemplate) prof.getTaggedProfileTemplate(); Iterator<Object> iter = profTemp.iteratorById(ORBConstants.TAG_JAVA_SERIALIZATION_ID);
public static CorbaClientDelegate makeClientDelegate(IOR ior) { ORB orb = ior.getORB(); CorbaContactInfoList ccil = orb.getCorbaContactInfoListFactory().create(ior); CorbaClientDelegate del = orb.getClientDelegateFactory().create(ccil); return del; }
if (ior.isNil()) return null; String codeBase = ior.getProfile().getCodebase(); PresentationManager.StubFactory stubFactory = null; RepositoryId rid = RepositoryId.cache.getId(ior.getTypeId()); String className = rid.getClassName(); boolean isIDLInterface = rid.isIDLType();
private byte[] internalReferenceToId(org.omg.CORBA.Object reference) throws WrongAdapter { IOR ior = ORBUtility.getIOR(reference); IORTemplateList thisTemplate = ior.getIORTemplates(); ObjectReferenceFactory orf = getCurrentFactory(); IORTemplateList poaTemplate = IORFactories.getIORTemplateList(orf); if (!poaTemplate.isEquivalent(thisTemplate)) throw new WrongAdapter(); // Extract the ObjectId from the first TaggedProfile in the IOR. If ior was created in this POA, the same ID was // used for every profile through the profile templates in the currentFactory, so we will get the same result // from any profile. Iterator<Object> iter = ior.iterator(); if (!iter.hasNext()) throw iorWrapper().noProfilesInIor(); TaggedProfile prof = (TaggedProfile) (iter.next()); ObjectId oid = prof.getObjectId(); return oid.getId(); }
IIOPProfile profile = ior.getProfile(); profile = ior.getProfile(); ObjectKey objKey = profile.getObjectKey(); byte[] object_key = objKey.getBytes(orb); if (addrDisp == ProfileAddr.value) profile = ior.getProfile(); target.profile(profile.getIOPProfile()); ior.getIOPIOR()); target.ior(iorInfo);
IIOPProfile prof = ior.getProfile(); IIOPProfileTemplate profTemp = (IIOPProfileTemplate) prof.getTaggedProfileTemplate(); Iterator<Object> iter = profTemp.iteratorById(ORBConstants.TAG_JAVA_SERIALIZATION_ID);
public static CorbaClientDelegate makeClientDelegate(IOR ior) { ORB orb = ior.getORB(); CorbaContactInfoList ccil = orb.getCorbaContactInfoListFactory().create(ior); CorbaClientDelegate del = orb.getClientDelegateFactory().create(ccil); return del; }
if (ior.isNil()) String codeBase = ior.getProfile().getCodebase(); PresentationManager.StubFactory stubFactory = null; RepositoryId rid = RepositoryId.cache.getId(ior.getTypeId()); String className = rid.getClassName(); boolean isIDLInterface = rid.isIDLType();
Object servant = ior.getProfile().getServant(); if (servant != null) String codebase = ior.getProfile().getCodebase(); org.omg.CORBA.Object objref = (org.omg.CORBA.Object) Utility.loadStub((Tie) servant, stubFactory, codebase, false);
public void write_Object(org.omg.CORBA.Object ref) { if (ref == null) { IOR nullIOR = IORFactories.makeIOR(orb); nullIOR.write(parent); return; } // IDL to Java formal 01-06-06 1.21.4.2 if (ref instanceof org.omg.CORBA.LocalObject) throw wrapper.writeLocalObject(CompletionStatus.COMPLETED_MAYBE); IOR ior = ORBUtility.connectAndGetIOR(orb, ref); ior.write(parent); return; }
public boolean equals(Object obj) { if (obj == null) return false; if (!(obj instanceof IOR)) return false; IOR other = (IOR) obj; return super.equals(obj) && typeId.equals(other.getTypeId()); }
public boolean isEquivalent(IOR ior) { Iterator<Object> myIterator = iterator(); Iterator<Object> otherIterator = ior.iterator(); while (myIterator.hasNext() && otherIterator.hasNext()) { TaggedProfile myProfile = (TaggedProfile) (myIterator.next()); TaggedProfile otherProfile = (TaggedProfile) (otherIterator.next()); if (!myProfile.isEquivalent(otherProfile)) return false; } return myIterator.hasNext() == otherIterator.hasNext(); }
if (ior.isNil()) String codeBase = ior.getProfile().getCodebase(); PresentationManager.StubFactory stubFactory = null; RepositoryId rid = RepositoryId.cache.getId(ior.getTypeId()); String className = rid.getClassName(); boolean isIDLInterface = rid.isIDLType();
Object servant = ior.getProfile().getServant(); if (servant != null) String codebase = ior.getProfile().getCodebase(); org.omg.CORBA.Object objref = (org.omg.CORBA.Object) Utility.loadStub((Tie) servant, stubFactory, codebase, false);