public OAInvocationInfo makeInvocationInfo(byte[] objectId) { OAInvocationInfo info = new OAInvocationInfo(this, objectId); info.setCopierFactory(getObjectCopierFactory()); return info; }
public void returnServant() { OAInvocationInfo info = orb.peekInvocationInfo(); if (locator == null) return; try { poa.unlock(); locator.postinvoke(info.id(), (POA) (info.oa()), info.getOperation(), info.getCookieHolder().value, (Servant) (info.getServantContainer())); } catch (ForwardRequest e) { e.printStackTrace(); } finally { poa.lock(); } }
void setServant(Servant servant) { peekThrowInternal().setServant(servant); }
public void getInvocationServant(OAInvocationInfo info) { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling getInvocationServant on poa " + this); } java.lang.Object servant = null; try { servant = mediator.getInvocationServant(info.id(), info.getOperation()); } catch (ForwardRequest freq) { throw new ForwardException(getORB(), freq.forward_reference); } info.setServant(servant); } finally { if (debug) { ORBUtility.dprint(this, "Exiting getInvocationServant on poa " + this); } unlock(); } }
public byte[] object_id(Servant self) { try{ return orb.peekInvocationInfo().id(); } catch (EmptyStackException exception){ throw wrapper.noContext(exception) ; } }
public ObjectAdapter getOA() { ObjectAdapter oa = peekThrowInternal().oa(); throwInternalIfNull(oa); return oa; }
CookieHolder getCookieHolder() { CookieHolder cookieHolder = peekThrowInternal().getCookieHolder(); throwInternalIfNull(cookieHolder); return cookieHolder; }
Servant getServant() { Servant servant = (Servant) (peekThrowInternal().getServantContainer()); // If is OK for the servant to be null. This could happen if POAImpl.getServant is called but // POAImpl.internalGetServant throws an exception. return servant; }
public String getOperation() { String operation = peekThrowInternal().getOperation(); throwInternalIfNull(operation); return operation; }
return lorb.peekInvocationInfo().getCopierFactory().make().copy(obj);
public void getInvocationServant(OAInvocationInfo info) { try { lock(); if (debug) { ORBUtility.dprint(this, "Calling getInvocationServant on poa " + this); } java.lang.Object servant = null; try { servant = mediator.getInvocationServant(info.id(), info.getOperation()); } catch (ForwardRequest freq) { throw new ForwardException(getORB(), freq.forward_reference); } info.setServant(servant); } finally { if (debug) { ORBUtility.dprint(this, "Exiting getInvocationServant on poa " + this); } unlock(); } }
public byte[] get_object_id() throws NoContext { byte[] objectid = peekThrowNoContext().id(); throwNoContextIfNull(objectid); return objectid; }
public ObjectAdapter getOA() { ObjectAdapter oa = peekThrowInternal().oa(); throwInternalIfNull(oa); return oa; }
CookieHolder getCookieHolder() { CookieHolder cookieHolder = peekThrowInternal().getCookieHolder(); throwInternalIfNull(cookieHolder); return cookieHolder; }
Servant getServant() { Servant servant = (Servant) (peekThrowInternal().getServantContainer()); // If is OK for the servant to be null. This could happen if POAImpl.getServant is called but // POAImpl.internalGetServant throws an exception. return servant; }
public String getOperation() { String operation = peekThrowInternal().getOperation(); throwInternalIfNull(operation); return operation; }
return lorb.peekInvocationInfo().getCopierFactory().make().copy(obj);
public void returnServant() { OAInvocationInfo info = orb.peekInvocationInfo(); if (locator == null) return; try { poa.unlock(); locator.postinvoke(info.id(), (POA) (info.oa()), info.getOperation(), info.getCookieHolder().value, (Servant) (info.getServantContainer())); } catch (ForwardRequest e) { e.printStackTrace(); } finally { poa.lock(); } }