Methods Summary |
---|
public final void | activateObject(byte[] id, org.omg.PortableServer.Servant servant)
throw new WrongPolicy();
|
public void | clearAOM()
// NO-OP
|
public org.omg.PortableServer.Servant | deactivateObject(byte[] id)
throw new WrongPolicy();
|
public void | etherealizeAll()
// NO-OP
|
public org.omg.PortableServer.Servant | getDefaultServant()
throw new WrongPolicy();
|
public org.omg.PortableServer.ServantManager | getServantManager()
return locator ;
|
public org.omg.PortableServer.Servant | idToServant(byte[] id)
throw new WrongPolicy();
|
protected java.lang.Object | internalGetServant(byte[] id, java.lang.String operation)
if (locator == null)
throw poa.invocationWrapper().poaNoServantManager() ;
CookieHolder cookieHolder = orb.peekInvocationInfo().getCookieHolder() ;
// Try - finally is J2EE requirement.
java.lang.Object servant;
try{
poa.unlock() ;
servant = locator.preinvoke(id, poa, operation, cookieHolder);
if (servant == null)
servant = new NullServantImpl( poa.omgInvocationWrapper().nullServantReturned() ) ;
else
setDelegate( (Servant)servant, id);
} finally {
poa.lock() ;
}
return servant;
|
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()) );
} finally {
poa.lock() ;
}
|
public byte[] | servantToId(org.omg.PortableServer.Servant servant)
throw new WrongPolicy();
|
public void | setDefaultServant(org.omg.PortableServer.Servant servant)
throw new WrongPolicy();
|
public void | setServantManager(org.omg.PortableServer.ServantManager servantManager)
if (locator != null)
throw poa.invocationWrapper().servantManagerAlreadySet() ;
if (servantManager instanceof ServantLocator)
locator = (ServantLocator)servantManager;
else
throw poa.invocationWrapper().servantManagerBadType() ;
|