/** * 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; } }
/** * 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; } }
/** * Writes a java.lang.Object as a CORBA Object. If <code>obj</code> is an exported RMI-IIOP server object, the tie * is found and wired to <code>obj</code>, then written to <code>out.write_Object(org.omg.CORBA.Object)</code>. If * <code>obj</code> is a CORBA Object, it is written to <code>out.write_Object(org.omg.CORBA.Object)</code>. * * @param out * the stream in which to write the object. * @param obj * the object to write. */ public void writeRemoteObject(OutputStream out, java.lang.Object obj) { //allow the object to be replaced Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj); // Make sure we have a connected object, then write it out... Object newObj = Utility.autoConnect(replacedObj, out.orb(), false); out.write_Object((org.omg.CORBA.Object) newObj); }
/** * Writes a java.lang.Object as a CORBA Object. If <code>obj</code> is an exported RMI-IIOP server object, the tie * is found and wired to <code>obj</code>, then written to <code>out.write_Object(org.omg.CORBA.Object)</code>. If * <code>obj</code> is a CORBA Object, it is written to <code>out.write_Object(org.omg.CORBA.Object)</code>. * * @param out * the stream in which to write the object. * @param obj * the object to write. */ public void writeRemoteObject(OutputStream out, java.lang.Object obj) { //allow the object to be replaced Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj); // Make sure we have a connected object, then write it out... Object newObj = Utility.autoConnect(replacedObj, out.orb(), false); out.write_Object((org.omg.CORBA.Object) newObj); }
/** * Writes a java.lang.Object as either a value or a CORBA Object. If <code>obj</code> is a value object or a stub * object, it is written to <code>out.write_abstract_interface(java.lang.Object)</code>. If <code>obj</code> is an * exported RMI-IIOP server object, the tie is found and wired to <code>obj</code>, then written to * <code>out.write_abstract_interface(java.lang.Object)</code>. * * @param out * the stream in which to write the object. * @param obj * the object to write. */ public void writeAbstractObject(OutputStream out, java.lang.Object obj) { //allow the object to be replaced Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj); // Make sure we have a connected object, then // write it out... Object newObj = Utility.autoConnect(replacedObj, out.orb(), false); ((org.omg.CORBA_2_3.portable.OutputStream) out).write_abstract_interface(newObj); }
/** * Writes a java.lang.Object as either a value or a CORBA Object. If <code>obj</code> is a value object or a stub * object, it is written to <code>out.write_abstract_interface(java.lang.Object)</code>. If <code>obj</code> is an * exported RMI-IIOP server object, the tie is found and wired to <code>obj</code>, then written to * <code>out.write_abstract_interface(java.lang.Object)</code>. * * @param out * the stream in which to write the object. * @param obj * the object to write. */ public void writeAbstractObject(OutputStream out, java.lang.Object obj) { //allow the object to be replaced Object replacedObj = RemoteObjectSubstitutionManager.writeReplaceRemote(obj); // Make sure we have a connected object, then // write it out... Object newObj = Utility.autoConnect(replacedObj, out.orb(), false); ((org.omg.CORBA_2_3.portable.OutputStream) out).write_abstract_interface(newObj); }
java.lang.Object newObj = Utility.autoConnect(obj, orb, false);
java.lang.Object newObj = Utility.autoConnect(obj, orb, false);