public String[] getInterfaces(java.lang.Object servant, byte[] objectId) { Servant serv = (Servant) servant; return serv._all_interfaces(this, objectId); }
public String[] getInterfaces( java.lang.Object servant, byte[] objectId ) { Servant serv = (Servant)servant ; return serv._all_interfaces( this, objectId ) ; }
public String[] getInterfaces(java.lang.Object servant, byte[] objectId) { Servant serv = (Servant) servant; return serv._all_interfaces(this, objectId); }
public String[] _ids() { return servant._all_interfaces(poa, null); }
public boolean is_a(org.omg.PortableServer.Servant self, String repid) { String [] intf = self._all_interfaces(poa(self), object_id(self)); for( int i = 0; i < intf.length; i++) { if( intf[i].equals(repid)) { return true; } } return "IDL:omg.org/CORBA/Object:1.0".equals (repid); }
public boolean is_a(Servant self, String repId) { String[] repositoryIds = self._all_interfaces(poa(self),object_id(self)); for ( int i=0; i<repositoryIds.length; i++ ) if ( repId.equals(repositoryIds[i]) ) return true; return false; }
public boolean is_a(Servant self, String repId) { String[] repositoryIds = self._all_interfaces(poa(self),object_id(self)); for ( int i=0; i<repositoryIds.length; i++ ) if ( repId.equals(repositoryIds[i]) ) return true; return false; }
public boolean is_a(org.omg.PortableServer.Servant self, String repository_id) { if (repository_id.equals("IDL:omg.org/CORBA/Object:1.0")) return true; else { org.omg.PortableServer.POA poa = poa(self); byte[] objectId = object_id(self); String[] ids = self._all_interfaces(poa, objectId); for (int i = 0; i < ids.length; i++) if (repository_id.equals(ids[i])) return true; } return false; }
public boolean is_a(Servant self, String repId) { String[] repositoryIds = self._all_interfaces(poa(self),object_id(self)); for ( int i=0; i<repositoryIds.length; i++ ) if ( repId.equals(repositoryIds[i]) ) return true; return false; }
public String target_most_derived_interface() { if (status_ == NO_REPLY_SC || servant_ == null) throw new org.omg.CORBA.BAD_INV_ORDER( org.apache.yoko.orb.OB.MinorCodes .describeBadInvOrder(org.apache.yoko.orb.OB.MinorCodes.MinorInvalidPICall), org.apache.yoko.orb.OB.MinorCodes.MinorInvalidPICall, org.omg.CORBA.CompletionStatus.COMPLETED_NO); org.apache.yoko.orb.OB.Assert._OB_assert(poa_ != null); return servant_._all_interfaces(poa_, objectId_)[0]; }
/** * <code>servant_to_reference</code> <b>3.3.8.20</b> */ public org.omg.CORBA.Object servant_to_reference(Servant servant) throws ServantNotActive, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling servant_to_reference(servant=" + servant + ") on poa " + this); } byte[] oid = mediator.servantToId(servant); String repId = servant._all_interfaces(this, oid)[0]; return create_reference_with_id(oid, repId); } finally { unlock(); } }
/** * <code>servant_to_reference</code> * <b>3.3.8.20</b> */ public org.omg.CORBA.Object servant_to_reference(Servant servant) throws ServantNotActive, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling servant_to_reference(servant=" + servant + ") on poa " + this ) ; } byte[] oid = mediator.servantToId(servant); String repId = servant._all_interfaces( this, oid )[0] ; return create_reference_with_id(oid, repId); } finally { unlock() ; } }
/** * <code>servant_to_reference</code> <b>3.3.8.20</b> */ public org.omg.CORBA.Object servant_to_reference(Servant servant) throws ServantNotActive, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling servant_to_reference(servant=" + servant + ") on poa " + this); } byte[] oid = mediator.servantToId(servant); String repId = servant._all_interfaces(this, oid)[0]; return create_reference_with_id(oid, repId); } finally { unlock(); } }
public org.omg.CORBA.Object servant_to_reference( org.omg.PortableServer.Servant servant) throws org.omg.PortableServer.POAPackage.ServantNotActive, org.omg.PortableServer.POAPackage.WrongPolicy { org.apache.yoko.orb.OB.Assert._OB_assert(servant != null); if (poaControl_.getDestroyed()) { throw new org.omg.CORBA.OBJECT_NOT_EXIST("POA " + name_ + " has been destroyed"); } // // If the operation was invoked in the context of executing // request on the specified servant, the reference associated // with the current invocation is returned. // if (poaCurrent_._OB_inUpcall() && poaCurrent_._OB_getServant() == servant) { try { byte[] oid = poaCurrent_.get_object_id(); String intf = servant._all_interfaces(this, oid)[0]; return ort().make_object(intf, oid); } catch (org.omg.PortableServer.CurrentPackage.NoContext ex) { org.apache.yoko.orb.OB.Assert._OB_assert(ex); } } byte[] oid = servant_to_id(servant); String intf = servant._all_interfaces(this, oid)[0]; return create_reference_with_id(oid, intf); }
@Override public org.omg.CORBA.Object id_to_reference (byte[] oid) throws ObjectNotActive, WrongPolicy { checkDestructionApparent (); if ( !isRetain() ) { throw new WrongPolicy(); } final Servant servant = aom.getServant(oid); // objectId is not active if (servant == null) { throw new ObjectNotActive(); } /* If the object with the specified ObjectId currently active, a reference encapsulating the information used to activate the object is returned. */ return getReference (oid, servant._all_interfaces (this, oid)[0], true); }
/** * <code>id_to_reference</code> * <b>3.3.8.24</b> */ public org.omg.CORBA.Object id_to_reference(byte[] id) throws ObjectNotActive, WrongPolicy { try { lock() ; if (debug) { ORBUtility.dprint( this, "Calling id_to_reference(id=" + id + ") on poa " + this ) ; } if( state >= STATE_DESTROYING ) { throw lifecycleWrapper().adapterDestroyed() ; } Servant s = mediator.idToServant( id ) ; String repId = s._all_interfaces( this, id )[0] ; return makeObject(repId, id ); } finally { unlock() ; } }
public EndpointReferenceType getAddressWithId(String id) { EndpointReferenceType ref = null; if (bindingPOA == null) { throw new CorbaBindingException( "getAddressWithId failed because the poa is null"); } try { Servant servant = bindingPOA.id_to_servant(objectId); org.omg.CORBA.Object objRef = bindingPOA.create_reference_with_id(id.getBytes(), servant._all_interfaces(bindingPOA, objectId)[0]); AddressType addr = new AddressType(); orbConfig.exportObjectReference(orb, objRef, address.getLocation(), addr); ref = EndpointReferenceUtils.getEndpointReference(addr.getLocation()); EndpointInfo ei = getEndPointInfo(); if (ei.getService() != null) { EndpointReferenceUtils.setServiceAndPortName(ref, ei.getService().getName(), ei.getName().getLocalPart()); } } catch (Exception e) { throw new CorbaBindingException("Failed to getAddressWithId, reason:" + e.toString(), e); } return ref; }
/** * <code>id_to_reference</code> <b>3.3.8.24</b> */ public org.omg.CORBA.Object id_to_reference(byte[] id) throws ObjectNotActive, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling id_to_reference(id=" + id + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } Servant s = mediator.idToServant(id); String repId = s._all_interfaces(this, id)[0]; return makeObject(repId, id); } finally { unlock(); } }
public org.omg.CORBA.Object id_to_reference(byte[] oid) throws org.omg.PortableServer.POAPackage.ObjectNotActive, org.omg.PortableServer.POAPackage.WrongPolicy { if (poaControl_.getDestroyed()) { throw new org.omg.CORBA.OBJECT_NOT_EXIST("POA " + name_ + " has been destroyed"); } // Requires the RETAIN policy // if (policies_.servantRetentionPolicy() != org.omg.PortableServer.ServantRetentionPolicyValue.RETAIN) throw new org.omg.PortableServer.POAPackage.WrongPolicy(); org.omg.PortableServer.Servant servant = servantLocationStrategy_ .idToServant(oid, false); if (servant == null) throw new org.omg.PortableServer.POAPackage.ObjectNotActive(); String intf = servant._all_interfaces(this, oid)[0]; return ort().make_object(intf, oid); }
/** * <code>id_to_reference</code> <b>3.3.8.24</b> */ public org.omg.CORBA.Object id_to_reference(byte[] id) throws ObjectNotActive, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling id_to_reference(id=" + id + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } Servant s = mediator.idToServant(id); String repId = s._all_interfaces(this, id)[0]; return makeObject(repId, id); } finally { unlock(); } }