Package com.sun.corba.se.spi.oa
Class ObjectAdapterBase
java.lang.Object
org.omg.CORBA.LocalObject
com.sun.corba.se.spi.oa.ObjectAdapterBase
- All Implemented Interfaces:
ObjectAdapter,Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidenter()enter must be called before each request is invoked on a servant.abstract voidexit()exit must be called after each request has been completed.final byte[]final ObjectReferenceTemplatefinal ObjectReferenceFactoryabstract PolicygetEffectivePolicy(int type) abstract String[]getInterfaces(Object servant, byte[] objectId) Return the most derived interface for the given servant and objectId.abstract voidGet the servant for the request given by the parameters.final IORTemplateReturns the IOR template of this adapter.abstract ObjectgetLocalServant(byte[] objectId) Get the servant corresponding to the given objectId, if this is supported.abstract intReturn the ID of the AdapterManager for this object adapter.protected abstract ObjectCopierFactoryfinal ORBgetORB()Returns the ORB associated with this adapter.abstract shortgetState()Return the current state of this object adapter (see org.omg.PortableInterceptors for states.final voidinitializeTemplate(ObjectKeyTemplate oktemp, boolean notifyORB, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId) final POASystemExceptionfinal POASystemExceptionfinal POASystemExceptionmakeInvocationInfo(byte[] objectId) Create an instance of InvocationInfo that is appropriate for this Object adapter.final ObjectmakeObject(String repId, byte[] oid) final OMGSystemExceptionfinal OMGSystemExceptionabstract voidMust be called every time getInvocationServant is called after the request has completed.final voidsetCurrentFactory(ObjectReferenceFactory factory) Change the current factory.Methods inherited from class org.omg.CORBA.LocalObject
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface, _get_interface_def, _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
-
Constructor Details
-
ObjectAdapterBase
-
-
Method Details
-
iorWrapper
-
lifecycleWrapper
-
omgLifecycleWrapper
-
invocationWrapper
-
omgInvocationWrapper
-
initializeTemplate
public final void initializeTemplate(ObjectKeyTemplate oktemp, boolean notifyORB, Policies policies, String codebase, String objectAdapterManagerId, ObjectAdapterId objectAdapterId) -
makeObject
-
getAdapterId
public final byte[] getAdapterId() -
getORB
Description copied from interface:ObjectAdapterReturns the ORB associated with this adapter.- Specified by:
getORBin interfaceObjectAdapter
-
getEffectivePolicy
- Specified by:
getEffectivePolicyin interfaceObjectAdapter
-
getIORTemplate
Description copied from interface:ObjectAdapterReturns the IOR template of this adapter. The profiles in this template may be updated only during the AdapterCreated call. After that call completes, the IOR template must be made immutable. Note that the server ID, ORB ID, and adapter name are all available from the IOR template.- Specified by:
getIORTemplatein interfaceObjectAdapter
-
getManagerId
public abstract int getManagerId()Description copied from interface:ObjectAdapterReturn the ID of the AdapterManager for this object adapter.- Specified by:
getManagerIdin interfaceObjectAdapter
-
getState
public abstract short getState()Description copied from interface:ObjectAdapterReturn the current state of this object adapter (see org.omg.PortableInterceptors for states.- Specified by:
getStatein interfaceObjectAdapter
-
getAdapterTemplate
- Specified by:
getAdapterTemplatein interfaceObjectAdapter
-
getCurrentFactory
- Specified by:
getCurrentFactoryin interfaceObjectAdapter
-
setCurrentFactory
Description copied from interface:ObjectAdapterChange the current factory. This may only be called during the AdapterCreated call.- Specified by:
setCurrentFactoryin interfaceObjectAdapter
-
getLocalServant
Description copied from interface:ObjectAdapterGet the servant corresponding to the given objectId, if this is supported. This method is only used for models where the servant is an ObjectImpl, which allows the servant to be used directly as the stub. This allows an object reference to be replaced by its servant when it is unmarshalled locally. Such objects are not ORB mediated.- Specified by:
getLocalServantin interfaceObjectAdapter
-
getInvocationServant
Description copied from interface:ObjectAdapterGet the servant for the request given by the parameters. info must contain a valid objectId in this call. The servant is set in the InvocationInfo argument that is passed into this call.- Specified by:
getInvocationServantin interfaceObjectAdapter- Parameters:
info- is the InvocationInfo object for the object reference
-
returnServant
public abstract void returnServant()Description copied from interface:ObjectAdapterMust be called every time getInvocationServant is called after the request has completed.- Specified by:
returnServantin interfaceObjectAdapter
-
enter
Description copied from interface:ObjectAdapterenter must be called before each request is invoked on a servant.- Specified by:
enterin interfaceObjectAdapter- Throws:
OADestroyed- is thrown when an OA has been destroyed, which requires a retry in the case where an AdapterActivator is present.
-
exit
public abstract void exit()Description copied from interface:ObjectAdapterexit must be called after each request has been completed. If enter is called, there must always be a corresponding exit.- Specified by:
exitin interfaceObjectAdapter
-
getObjectCopierFactory
-
makeInvocationInfo
Description copied from interface:ObjectAdapterCreate an instance of InvocationInfo that is appropriate for this Object adapter.- Specified by:
makeInvocationInfoin interfaceObjectAdapter
-
getInterfaces
Description copied from interface:ObjectAdapterReturn the most derived interface for the given servant and objectId.- Specified by:
getInterfacesin interfaceObjectAdapter
-