/** * <code>id_to_servant</code> <b>3.3.8.23</b> */ public Servant id_to_servant(byte[] id) throws ObjectNotActive, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling id_to_servant(id=" + id + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } return mediator.idToServant(id); } finally { unlock(); } }
/** * <code>id_to_servant</code> <b>3.3.8.23</b> */ public Servant id_to_servant(byte[] id) throws ObjectNotActive, WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling id_to_servant(id=" + id + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } return mediator.idToServant(id); } finally { unlock(); } }
/** * <code>reference_to_servant</code> <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } // reference_to_id should throw WrongAdapter if the objref was not created by this POA byte[] id = internalReferenceToId(reference); return mediator.idToServant(id); } finally { unlock(); } }
/** * <code>reference_to_servant</code> <b>3.3.8.21</b> */ public Servant reference_to_servant(org.omg.CORBA.Object reference) throws ObjectNotActive, WrongPolicy, WrongAdapter { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling reference_to_servant(reference=" + reference + ") on poa " + this); } if (state >= STATE_DESTROYING) { throw lifecycleWrapper().adapterDestroyed(); } // reference_to_id should throw WrongAdapter if the objref was not created by this POA byte[] id = internalReferenceToId(reference); return mediator.idToServant(id); } finally { unlock(); } }
/** * <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(); } }
/** * <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(); } }