public abstract class ObjectAdapterBase extends LocalObject implements ObjectAdapter
| Constructor and Description |
|---|
ObjectAdapterBase(ORB orb) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
enter()
enter must be called before each request is invoked on a servant.
|
abstract void |
exit()
exit must be called after each request has been completed.
|
byte[] |
getAdapterId() |
ObjectReferenceTemplate |
getAdapterTemplate() |
ObjectReferenceFactory |
getCurrentFactory() |
abstract Policy |
getEffectivePolicy(int type) |
abstract String[] |
getInterfaces(Object servant,
byte[] objectId)
Return the most derived interface for the given servant and objectId.
|
abstract void |
getInvocationServant(OAInvocationInfo info)
Get the servant for the request given by the parameters.
|
IORTemplate |
getIORTemplate()
Returns the IOR template of this adapter.
|
abstract Object |
getLocalServant(byte[] objectId)
Get the servant corresponding to the given objectId, if this is supported.
|
abstract int |
getManagerId()
Return the ID of the AdapterManager for this object adapter.
|
protected abstract ObjectCopierFactory |
getObjectCopierFactory() |
ORB |
getORB()
Returns the ORB associated with this adapter.
|
abstract short |
getState()
Return the current state of this object adapter (see
org.omg.PortableInterceptors for states.
|
void |
initializeTemplate(ObjectKeyTemplate oktemp,
boolean notifyORB,
Policies policies,
String codebase,
String objectAdapterManagerId,
ObjectAdapterId objectAdapterId) |
POASystemException |
invocationWrapper() |
POASystemException |
iorWrapper() |
POASystemException |
lifecycleWrapper() |
OAInvocationInfo |
makeInvocationInfo(byte[] objectId)
Create an instance of InvocationInfo that is appropriate for this
Object adapter.
|
Object |
makeObject(String repId,
byte[] oid) |
OMGSystemException |
omgInvocationWrapper() |
OMGSystemException |
omgLifecycleWrapper() |
abstract void |
returnServant()
Must be called every time getInvocationServant is called after
the request has completed.
|
void |
setCurrentFactory(ObjectReferenceFactory factory)
Change the current factory.
|
_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_connectionpublic ObjectAdapterBase(ORB orb)
public final POASystemException iorWrapper()
public final POASystemException lifecycleWrapper()
public final OMGSystemException omgLifecycleWrapper()
public final POASystemException invocationWrapper()
public final OMGSystemException omgInvocationWrapper()
public final void initializeTemplate(ObjectKeyTemplate oktemp, boolean notifyORB, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId)
public final byte[] getAdapterId()
public final ORB getORB()
ObjectAdaptergetORB in interface ObjectAdapterpublic abstract Policy getEffectivePolicy(int type)
getEffectivePolicy in interface ObjectAdapterpublic final IORTemplate getIORTemplate()
ObjectAdaptergetIORTemplate in interface ObjectAdapterpublic abstract int getManagerId()
ObjectAdaptergetManagerId in interface ObjectAdapterpublic abstract short getState()
ObjectAdaptergetState in interface ObjectAdapterpublic final ObjectReferenceTemplate getAdapterTemplate()
getAdapterTemplate in interface ObjectAdapterpublic final ObjectReferenceFactory getCurrentFactory()
getCurrentFactory in interface ObjectAdapterpublic final void setCurrentFactory(ObjectReferenceFactory factory)
ObjectAdaptersetCurrentFactory in interface ObjectAdapterpublic abstract Object getLocalServant(byte[] objectId)
ObjectAdaptergetLocalServant in interface ObjectAdapterpublic abstract void getInvocationServant(OAInvocationInfo info)
ObjectAdaptergetInvocationServant in interface ObjectAdapterinfo - is the InvocationInfo object for the object referencepublic abstract void returnServant()
ObjectAdapterreturnServant in interface ObjectAdapterpublic abstract void enter()
throws OADestroyed
ObjectAdapterenter in interface ObjectAdapterOADestroyed - is thrown when an OA has been destroyed, which
requires a retry in the case where an AdapterActivator is present.public abstract void exit()
ObjectAdapterexit in interface ObjectAdapterprotected abstract ObjectCopierFactory getObjectCopierFactory()
public OAInvocationInfo makeInvocationInfo(byte[] objectId)
ObjectAdaptermakeInvocationInfo in interface ObjectAdapterpublic abstract String[] getInterfaces(Object servant, byte[] objectId)
ObjectAdaptergetInterfaces in interface ObjectAdapterCopyright © 2018 JBoss by Red Hat. All rights reserved.