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_connection
public 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()
ObjectAdapter
getORB
in interface ObjectAdapter
public abstract Policy getEffectivePolicy(int type)
getEffectivePolicy
in interface ObjectAdapter
public final IORTemplate getIORTemplate()
ObjectAdapter
getIORTemplate
in interface ObjectAdapter
public abstract int getManagerId()
ObjectAdapter
getManagerId
in interface ObjectAdapter
public abstract short getState()
ObjectAdapter
getState
in interface ObjectAdapter
public final ObjectReferenceTemplate getAdapterTemplate()
getAdapterTemplate
in interface ObjectAdapter
public final ObjectReferenceFactory getCurrentFactory()
getCurrentFactory
in interface ObjectAdapter
public final void setCurrentFactory(ObjectReferenceFactory factory)
ObjectAdapter
setCurrentFactory
in interface ObjectAdapter
public abstract Object getLocalServant(byte[] objectId)
ObjectAdapter
getLocalServant
in interface ObjectAdapter
public abstract void getInvocationServant(OAInvocationInfo info)
ObjectAdapter
getInvocationServant
in interface ObjectAdapter
info
- is the InvocationInfo object for the object referencepublic abstract void returnServant()
ObjectAdapter
returnServant
in interface ObjectAdapter
public abstract void enter() throws OADestroyed
ObjectAdapter
enter
in interface ObjectAdapter
OADestroyed
- is thrown when an OA has been destroyed, which
requires a retry in the case where an AdapterActivator is present.public abstract void exit()
ObjectAdapter
exit
in interface ObjectAdapter
protected abstract ObjectCopierFactory getObjectCopierFactory()
public OAInvocationInfo makeInvocationInfo(byte[] objectId)
ObjectAdapter
makeInvocationInfo
in interface ObjectAdapter
public abstract String[] getInterfaces(Object servant, byte[] objectId)
ObjectAdapter
getInterfaces
in interface ObjectAdapter
Copyright © 2019 JBoss by Red Hat. All rights reserved.