public class TOAImpl extends ObjectAdapterBase implements TOA
Constructor and Description |
---|
TOAImpl(ORB orb,
TransientObjectManager tom,
String codebase) |
Modifier and Type | Method and Description |
---|---|
void |
connect(Object objref)
Connect the given servant to the ORB by allocating a transient object key
and creating an IOR and object reference using the current factory.
|
void |
disconnect(Object objref)
Disconnect the object from this ORB.
|
void |
enter()
enter must be called before each request is invoked on a servant.
|
void |
exit()
exit must be called after each request has been completed.
|
Policy |
getEffectivePolicy(int type) |
String[] |
getInterfaces(Object servant,
byte[] objectId)
Return the most derived interface for the given servant and objectId.
|
void |
getInvocationServant(OAInvocationInfo info)
Get the servant for the request given by the parameters.
|
Object |
getLocalServant(byte[] objectId)
Get the servant corresponding to the given objectId, if this is supported.
|
int |
getManagerId()
Return the ID of the AdapterManager for this object adapter.
|
ObjectCopierFactory |
getObjectCopierFactory() |
short |
getState()
Return the current state of this object adapter (see
org.omg.PortableInterceptors for states.
|
void |
returnServant()
Must be called every time getInvocationServant is called after
the request has completed.
|
getAdapterId, getAdapterTemplate, getCurrentFactory, getIORTemplate, getORB, initializeTemplate, invocationWrapper, iorWrapper, lifecycleWrapper, makeInvocationInfo, makeObject, omgInvocationWrapper, omgLifecycleWrapper, setCurrentFactory
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_interface, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_policy_override, validate_connection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdapterTemplate, getCurrentFactory, getIORTemplate, getORB, makeInvocationInfo, setCurrentFactory
public TOAImpl(ORB orb, TransientObjectManager tom, String codebase)
public ObjectCopierFactory getObjectCopierFactory()
getObjectCopierFactory
in class ObjectAdapterBase
public Object getLocalServant(byte[] objectId)
ObjectAdapter
getLocalServant
in interface ObjectAdapter
getLocalServant
in class ObjectAdapterBase
public void getInvocationServant(OAInvocationInfo info)
getInvocationServant
in interface ObjectAdapter
getInvocationServant
in class ObjectAdapterBase
request
- is the request containing the rest of the requestpublic void returnServant()
ObjectAdapter
returnServant
in interface ObjectAdapter
returnServant
in class ObjectAdapterBase
public String[] getInterfaces(Object servant, byte[] objectId)
getInterfaces
in interface ObjectAdapter
getInterfaces
in class ObjectAdapterBase
public Policy getEffectivePolicy(int type)
getEffectivePolicy
in interface ObjectAdapter
getEffectivePolicy
in class ObjectAdapterBase
public int getManagerId()
ObjectAdapter
getManagerId
in interface ObjectAdapter
getManagerId
in class ObjectAdapterBase
public short getState()
ObjectAdapter
getState
in interface ObjectAdapter
getState
in class ObjectAdapterBase
public void enter() throws OADestroyed
ObjectAdapter
enter
in interface ObjectAdapter
enter
in class ObjectAdapterBase
OADestroyed
- is thrown when an OA has been destroyed, which
requires a retry in the case where an AdapterActivator is present.public void exit()
ObjectAdapter
exit
in interface ObjectAdapter
exit
in class ObjectAdapterBase
public void connect(Object objref)
TOA
public void disconnect(Object objref)
TOA
disconnect
in interface TOA
Copyright © 2017 JBoss by Red Hat. All rights reserved.