/** * Checks for objects that are instances of java.rmi.Remote that need to be serialized as proxy (Stub) objects. */ protected final Object replaceObject(Object obj) throws IOException { try { if ((obj instanceof java.rmi.Remote) && !(StubAdapter.isStub(obj))) { return Utility.autoConnect(obj, orb, true); } } catch (Exception e) { IOException ie = new IOException("replaceObject failed"); ie.initCause(e); throw ie; } return obj; } }
/** * Connect the Stub to the ORB. */ protected final Object resolveObject(Object obj) throws IOException { try { if (StubAdapter.isStub(obj)) { StubAdapter.connect(obj, orb); } } catch (java.rmi.RemoteException re) { IOException ie = new IOException("resolveObject failed"); ie.initCause(re); throw ie; } return obj; } }
/** * Connect the Stub to the ORB. */ protected final Object resolveObject(Object obj) throws IOException { try { if (StubAdapter.isStub(obj)) { StubAdapter.connect(obj, orb); } } catch (java.rmi.RemoteException re) { IOException ie = new IOException("resolveObject failed"); ie.initCause(re); throw ie; } return obj; } }
/** * Checks for objects that are instances of java.rmi.Remote that need to be serialized as proxy (Stub) objects. */ protected final Object replaceObject(Object obj) throws IOException { try { if ((obj instanceof java.rmi.Remote) && !(StubAdapter.isStub(obj))) { return Utility.autoConnect(obj, orb, true); } } catch (Exception e) { IOException ie = new IOException("replaceObject failed"); ie.initCause(e); throw ie; } return obj; } }
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_Object(org.omg.CORBA.Object o) { // debug.log ("insert_Object"); if (o == null) { typeCode = orb.get_primitive_tc(TCKind._tk_objref); } else { if (StubAdapter.isStub(o)) { String[] ids = StubAdapter.getTypeIds(o); typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], ""); } else { throw wrapper.badInsertobjParam(CompletionStatus.COMPLETED_MAYBE, o.getClass().getName()); } } object = o; isInitialized = true; }
/** * See the description of the <a href="#anyOps">general Any operations.</a> */ public void insert_Object(org.omg.CORBA.Object o) { // debug.log ("insert_Object"); if (o == null) { typeCode = orb.get_primitive_tc(TCKind._tk_objref); } else { if (StubAdapter.isStub(o)) { String[] ids = StubAdapter.getTypeIds(o); typeCode = new TypeCodeImpl(orb, TCKind._tk_objref, ids[0], ""); } else { throw wrapper.badInsertobjParam(CompletionStatus.COMPLETED_MAYBE, o.getClass().getName()); } } object = o; isInitialized = true; }
if (StubAdapter.isStub(obj) || obj instanceof java.rmi.server.RemoteStub)
if (StubAdapter.isStub(obj))
if (StubAdapter.isStub(obj))
if (StubAdapter.isStub(obj))
if (StubAdapter.isStub(obj))
if (StubAdapter.isStub(obj) || obj instanceof java.rmi.server.RemoteStub)
if (StubAdapter.isStub(obj))
if (StubAdapter.isStub(obj))
if (StubAdapter.isStub(obj))
if (StubAdapter.isStub(obj))
boolean tieIsStub = StubAdapter.isStub(tie);
boolean tieIsStub = StubAdapter.isStub(tie);