private boolean isLocal() { boolean result = false; Delegate delegate = StubAdapter.getDelegate(stub); if (delegate instanceof CorbaClientDelegate) { CorbaClientDelegate cdel = (CorbaClientDelegate) delegate; ContactInfoList cil = cdel.getContactInfoList(); if (cil instanceof CorbaContactInfoList) { CorbaContactInfoList ccil = (CorbaContactInfoList) cil; LocalClientRequestDispatcher lcrd = ccil.getLocalClientRequestDispatcher(); result = lcrd.useLocalInvocation(null); } } return result; }
private boolean isLocal() { boolean result = false; Delegate delegate = StubAdapter.getDelegate(stub); if (delegate instanceof CorbaClientDelegate) { CorbaClientDelegate cdel = (CorbaClientDelegate) delegate; ContactInfoList cil = cdel.getContactInfoList(); if (cil instanceof CorbaContactInfoList) { CorbaContactInfoList ccil = (CorbaContactInfoList) cil; LocalClientRequestDispatcher lcrd = ccil.getLocalClientRequestDispatcher(); result = lcrd.useLocalInvocation(null); } } return result; }
Delegate delegate = StubAdapter.getDelegate(narrowFrom); codebase = ((org.omg.CORBA_2_3.portable.Delegate) delegate).get_codebase(narrowFrom); classLoader); result = sf.makeStub(); StubAdapter.setDelegate(result, StubAdapter.getDelegate(narrowFrom));
Delegate delegate = StubAdapter.getDelegate(narrowFrom); codebase = ((org.omg.CORBA_2_3.portable.Delegate) delegate).get_codebase(narrowFrom); classLoader); result = sf.makeStub(); StubAdapter.setDelegate(result, StubAdapter.getDelegate(narrowFrom));
/** * This also gets the delegate from a Servant by using Servant._this_object() */ public static Delegate getDelegate(Object stub) { if (stub instanceof DynamicStub) return ((DynamicStub) stub).getDelegate(); else if (stub instanceof ObjectImpl) return ((ObjectImpl) stub)._get_delegate(); else if (stub instanceof Tie) { Tie tie = (Tie) stub; org.omg.CORBA.Object ref = activateTie(tie); return getDelegate(ref); } else throw wrapper.getDelegateRequiresStub(); }
/** * This also gets the delegate from a Servant by using Servant._this_object() */ public static Delegate getDelegate(Object stub) { if (stub instanceof DynamicStub) return ((DynamicStub) stub).getDelegate(); else if (stub instanceof ObjectImpl) return ((ObjectImpl) stub)._get_delegate(); else if (stub instanceof Tie) { Tie tie = (Tie) stub; org.omg.CORBA.Object ref = activateTie(tie); return getDelegate(ref); } else throw wrapper.getDelegateRequiresStub(); }
StubAdapter.getDelegate(entry.stub); Delegate del = StubAdapter.getDelegate(tie); StubAdapter.setDelegate(entry.stub, del);
StubAdapter.getDelegate(entry.stub); Delegate del = StubAdapter.getDelegate(tie); StubAdapter.setDelegate(entry.stub, del);
StubAdapter.getDelegate(obj);
StubAdapter.getDelegate(obj);
public Delegate getDelegate(ORB orb) { // write the IOR components to an org.omg.CORBA.portable.OutputStream OutputStream ostr = orb.create_output_stream(); ostr.write_long(typeData.length); ostr.write_octet_array(typeData, 0, typeData.length); ostr.write_long(profileTags.length); for (int i = 0; i < profileTags.length; i++) { ostr.write_long(profileTags[i]); ostr.write_long(profileData[i].length); ostr.write_octet_array(profileData[i], 0, profileData[i].length); } InputStream istr = ostr.create_input_stream(); // read the IOR back from the stream org.omg.CORBA.Object obj = istr.read_Object(); return StubAdapter.getDelegate(obj); }
del = StubAdapter.getDelegate(stub); del = StubAdapter.getDelegate(tie); ObjectImpl objref = new CORBAObjectImpl(); objref._set_delegate(del);
del = StubAdapter.getDelegate(stub); del = StubAdapter.getDelegate(tie); ObjectImpl objref = new CORBAObjectImpl(); objref._set_delegate(del);
public Delegate getDelegate(ORB orb) { // write the IOR components to an org.omg.CORBA.portable.OutputStream OutputStream ostr = orb.create_output_stream(); ostr.write_long(typeData.length); ostr.write_octet_array(typeData, 0, typeData.length); ostr.write_long(profileTags.length); for (int i = 0; i < profileTags.length; i++) { ostr.write_long(profileTags[i]); ostr.write_long(profileData[i].length); ostr.write_octet_array(profileData[i], 0, profileData[i].length); } InputStream istr = ostr.create_input_stream(); // read the IOR back from the stream org.omg.CORBA.Object obj = istr.read_Object(); return StubAdapter.getDelegate(obj); }
if (StubAdapter.isStub(obj)) org.omg.CORBA.portable.Delegate del = StubAdapter.getDelegate(obj);
if (StubAdapter.isStub(obj)) org.omg.CORBA.portable.Delegate del = StubAdapter.getDelegate(obj);
try delegate = StubAdapter.getDelegate(stub);
try delegate = StubAdapter.getDelegate(stub);
protected void doInvocation() org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(_target);
protected void doInvocation() org.omg.CORBA.portable.Delegate delegate = StubAdapter.getDelegate(_target);