/** * <code>create_reference</code> <b>3.3.8.17</b> */ public org.omg.CORBA.Object create_reference(String repId) throws WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling create_reference(repId=" + repId + ") on poa " + this); } return makeObject(repId, mediator.newSystemId()); } finally { unlock(); } }
/** * <code>create_reference</code> <b>3.3.8.17</b> */ public org.omg.CORBA.Object create_reference(String repId) throws WrongPolicy { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling create_reference(repId=" + repId + ") on poa " + this); } return makeObject(repId, mediator.newSystemId()); } finally { unlock(); } }
/** * <code>create_reference_with_id</code> <b>3.3.8.18</b> */ public org.omg.CORBA.Object create_reference_with_id(byte[] oid, String repId) { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling create_reference_with_id(oid=" + oid + " repId=" + repId + ") on poa " + this); } // Clone the id to avoid possible errors due to aliasing (e.g. the client passes the id in and then changes // it later). byte[] idClone = oid.clone(); return makeObject(repId, idClone); } finally { unlock(); } }
/** * <code>create_reference_with_id</code> <b>3.3.8.18</b> */ public org.omg.CORBA.Object create_reference_with_id(byte[] oid, String repId) { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling create_reference_with_id(oid=" + oid + " repId=" + repId + ") on poa " + this); } // Clone the id to avoid possible errors due to aliasing (e.g. the client passes the id in and then changes // it later). byte[] idClone = oid.clone(); return makeObject(repId, idClone); } 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(); } }