org.omg.PortableServer
Class _ServantLocatorStub

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by org.omg.CORBA.portable.ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl 
      extended by org.omg.PortableServer._ServantLocatorStub
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object , IDLEntity sample code for org.omg.CORBA.portable.IDLEntity definition code for org.omg.CORBA.portable.IDLEntity , ServantLocator sample code for org.omg.PortableServer.ServantLocator definition code for org.omg.PortableServer.ServantLocator , ServantLocatorOperations sample code for org.omg.PortableServer.ServantLocatorOperations definition code for org.omg.PortableServer.ServantLocatorOperations , ServantManager sample code for org.omg.PortableServer.ServantManager definition code for org.omg.PortableServer.ServantManager , ServantManagerOperations sample code for org.omg.PortableServer.ServantManagerOperations definition code for org.omg.PortableServer.ServantManagerOperations

public class _ServantLocatorStub
extends ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl
implements ServantLocator sample code for org.omg.PortableServer.ServantLocator definition code for org.omg.PortableServer.ServantLocator

When the POA has the NON_RETAIN policy it uses servant managers that are ServantLocators. Because the POA knows that the servant returned by this servant manager will be used only for a single request, it can supply extra information to the servant manager's operations and the servant manager's pair of operations may be able to cooperate to do something different than a ServantActivator. When the POA uses the ServantLocator interface, immediately after performing the operation invocation on the servant returned by preinvoke, the POA will invoke postinvoke on the servant manager, passing the ObjectId value and the Servant value as parameters (among others). This feature may be used to force every request for objects associated with a POA to be mediated by the servant manager.

See Also:
Serialized Form

Field Summary
static Class sample code for java.lang.Class definition code for java.lang.Class _opsClass
           
 
Constructor Summary
_ServantLocatorStub sample code for org.omg.PortableServer._ServantLocatorStub._ServantLocatorStub() definition code for org.omg.PortableServer._ServantLocatorStub._ServantLocatorStub() ()
           
 
Method Summary
 String sample code for java.lang.String definition code for java.lang.String [] _ids sample code for org.omg.PortableServer._ServantLocatorStub._ids() definition code for org.omg.PortableServer._ServantLocatorStub._ids() ()
          Retrieves a string array containing the repository identifiers supported by this ObjectImpl object.
 void postinvoke sample code for org.omg.PortableServer._ServantLocatorStub.postinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, java.lang.Object, org.omg.PortableServer.Servant) definition code for org.omg.PortableServer._ServantLocatorStub.postinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, java.lang.Object, org.omg.PortableServer.Servant) (byte[] oid, POA sample code for org.omg.PortableServer.POA definition code for org.omg.PortableServer.POA  adapter, String sample code for java.lang.String definition code for java.lang.String  operation, Object sample code for java.lang.Object definition code for java.lang.Object  the_cookie, Servant sample code for org.omg.PortableServer.Servant definition code for org.omg.PortableServer.Servant  the_servant)
          This operation is invoked whenener a servant completes a request.
 Servant sample code for org.omg.PortableServer.Servant definition code for org.omg.PortableServer.Servant preinvoke sample code for org.omg.PortableServer._ServantLocatorStub.preinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, org.omg.PortableServer.ServantLocatorPackage.CookieHolder) definition code for org.omg.PortableServer._ServantLocatorStub.preinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, org.omg.PortableServer.ServantLocatorPackage.CookieHolder) (byte[] oid, POA sample code for org.omg.PortableServer.POA definition code for org.omg.PortableServer.POA  adapter, String sample code for java.lang.String definition code for java.lang.String  operation, CookieHolder sample code for org.omg.PortableServer.ServantLocatorPackage.CookieHolder definition code for org.omg.PortableServer.ServantLocatorPackage.CookieHolder  the_cookie)
          This operations is used to get a servant that will be used to process the request that caused preinvoke to be called.
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl
_create_request sample code for org.omg.CORBA.portable.ObjectImpl._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) definition code for org.omg.CORBA.portable.ObjectImpl._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) , _create_request sample code for org.omg.CORBA.portable.ObjectImpl._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) definition code for org.omg.CORBA.portable.ObjectImpl._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) , _duplicate sample code for org.omg.CORBA.portable.ObjectImpl._duplicate() definition code for org.omg.CORBA.portable.ObjectImpl._duplicate() , _get_delegate sample code for org.omg.CORBA.portable.ObjectImpl._get_delegate() definition code for org.omg.CORBA.portable.ObjectImpl._get_delegate() , _get_domain_managers sample code for org.omg.CORBA.portable.ObjectImpl._get_domain_managers() definition code for org.omg.CORBA.portable.ObjectImpl._get_domain_managers() , _get_interface_def sample code for org.omg.CORBA.portable.ObjectImpl._get_interface_def() definition code for org.omg.CORBA.portable.ObjectImpl._get_interface_def() , _get_policy sample code for org.omg.CORBA.portable.ObjectImpl._get_policy(int) definition code for org.omg.CORBA.portable.ObjectImpl._get_policy(int) , _hash sample code for org.omg.CORBA.portable.ObjectImpl._hash(int) definition code for org.omg.CORBA.portable.ObjectImpl._hash(int) , _invoke sample code for org.omg.CORBA.portable.ObjectImpl._invoke(org.omg.CORBA.portable.OutputStream) definition code for org.omg.CORBA.portable.ObjectImpl._invoke(org.omg.CORBA.portable.OutputStream) , _is_a sample code for org.omg.CORBA.portable.ObjectImpl._is_a(java.lang.String) definition code for org.omg.CORBA.portable.ObjectImpl._is_a(java.lang.String) , _is_equivalent sample code for org.omg.CORBA.portable.ObjectImpl._is_equivalent(org.omg.CORBA.Object) definition code for org.omg.CORBA.portable.ObjectImpl._is_equivalent(org.omg.CORBA.Object) , _is_local sample code for org.omg.CORBA.portable.ObjectImpl._is_local() definition code for org.omg.CORBA.portable.ObjectImpl._is_local() , _non_existent sample code for org.omg.CORBA.portable.ObjectImpl._non_existent() definition code for org.omg.CORBA.portable.ObjectImpl._non_existent() , _orb sample code for org.omg.CORBA.portable.ObjectImpl._orb() definition code for org.omg.CORBA.portable.ObjectImpl._orb() , _release sample code for org.omg.CORBA.portable.ObjectImpl._release() definition code for org.omg.CORBA.portable.ObjectImpl._release() , _releaseReply sample code for org.omg.CORBA.portable.ObjectImpl._releaseReply(org.omg.CORBA.portable.InputStream) definition code for org.omg.CORBA.portable.ObjectImpl._releaseReply(org.omg.CORBA.portable.InputStream) , _request sample code for org.omg.CORBA.portable.ObjectImpl._request(java.lang.String) definition code for org.omg.CORBA.portable.ObjectImpl._request(java.lang.String) , _request sample code for org.omg.CORBA.portable.ObjectImpl._request(java.lang.String, boolean) definition code for org.omg.CORBA.portable.ObjectImpl._request(java.lang.String, boolean) , _servant_postinvoke sample code for org.omg.CORBA.portable.ObjectImpl._servant_postinvoke(org.omg.CORBA.portable.ServantObject) definition code for org.omg.CORBA.portable.ObjectImpl._servant_postinvoke(org.omg.CORBA.portable.ServantObject) , _servant_preinvoke sample code for org.omg.CORBA.portable.ObjectImpl._servant_preinvoke(java.lang.String, java.lang.Class) definition code for org.omg.CORBA.portable.ObjectImpl._servant_preinvoke(java.lang.String, java.lang.Class) , _set_delegate sample code for org.omg.CORBA.portable.ObjectImpl._set_delegate(org.omg.CORBA.portable.Delegate) definition code for org.omg.CORBA.portable.ObjectImpl._set_delegate(org.omg.CORBA.portable.Delegate) , _set_policy_override sample code for org.omg.CORBA.portable.ObjectImpl._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) definition code for org.omg.CORBA.portable.ObjectImpl._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) , equals sample code for org.omg.CORBA.portable.ObjectImpl.equals(java.lang.Object) definition code for org.omg.CORBA.portable.ObjectImpl.equals(java.lang.Object) , hashCode sample code for org.omg.CORBA.portable.ObjectImpl.hashCode() definition code for org.omg.CORBA.portable.ObjectImpl.hashCode() , toString sample code for org.omg.CORBA.portable.ObjectImpl.toString() definition code for org.omg.CORBA.portable.ObjectImpl.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface org.omg.CORBA.Object sample code for org.omg.CORBA.Object definition code for org.omg.CORBA.Object
_create_request sample code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) definition code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue) , _create_request sample code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) definition code for org.omg.CORBA.Object._create_request(org.omg.CORBA.Context, java.lang.String, org.omg.CORBA.NVList, org.omg.CORBA.NamedValue, org.omg.CORBA.ExceptionList, org.omg.CORBA.ContextList) , _duplicate sample code for org.omg.CORBA.Object._duplicate() definition code for org.omg.CORBA.Object._duplicate() , _get_domain_managers sample code for org.omg.CORBA.Object._get_domain_managers() definition code for org.omg.CORBA.Object._get_domain_managers() , _get_interface_def sample code for org.omg.CORBA.Object._get_interface_def() definition code for org.omg.CORBA.Object._get_interface_def() , _get_policy sample code for org.omg.CORBA.Object._get_policy(int) definition code for org.omg.CORBA.Object._get_policy(int) , _hash sample code for org.omg.CORBA.Object._hash(int) definition code for org.omg.CORBA.Object._hash(int) , _is_a sample code for org.omg.CORBA.Object._is_a(java.lang.String) definition code for org.omg.CORBA.Object._is_a(java.lang.String) , _is_equivalent sample code for org.omg.CORBA.Object._is_equivalent(org.omg.CORBA.Object) definition code for org.omg.CORBA.Object._is_equivalent(org.omg.CORBA.Object) , _non_existent sample code for org.omg.CORBA.Object._non_existent() definition code for org.omg.CORBA.Object._non_existent() , _release sample code for org.omg.CORBA.Object._release() definition code for org.omg.CORBA.Object._release() , _request sample code for org.omg.CORBA.Object._request(java.lang.String) definition code for org.omg.CORBA.Object._request(java.lang.String) , _set_policy_override sample code for org.omg.CORBA.Object._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType) definition code for org.omg.CORBA.Object._set_policy_override(org.omg.CORBA.Policy[], org.omg.CORBA.SetOverrideType)
 

Field Detail

_opsClass sample code for org.omg.PortableServer._ServantLocatorStub._opsClass

public static final Class sample code for java.lang.Class definition code for java.lang.Class  _opsClass
Constructor Detail

_ServantLocatorStub sample code for org.omg.PortableServer._ServantLocatorStub() definition code for org.omg.PortableServer._ServantLocatorStub()

public _ServantLocatorStub()
Method Detail

preinvoke sample code for org.omg.PortableServer._ServantLocatorStub.preinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, org.omg.PortableServer.ServantLocatorPackage.CookieHolder) definition code for org.omg.PortableServer._ServantLocatorStub.preinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, org.omg.PortableServer.ServantLocatorPackage.CookieHolder)

public Servant sample code for org.omg.PortableServer.Servant definition code for org.omg.PortableServer.Servant  preinvoke(byte[] oid,
                         POA sample code for org.omg.PortableServer.POA definition code for org.omg.PortableServer.POA  adapter,
                         String sample code for java.lang.String definition code for java.lang.String  operation,
                         CookieHolder sample code for org.omg.PortableServer.ServantLocatorPackage.CookieHolder definition code for org.omg.PortableServer.ServantLocatorPackage.CookieHolder  the_cookie)
                  throws ForwardRequest sample code for org.omg.PortableServer.ForwardRequest definition code for org.omg.PortableServer.ForwardRequest 
This operations is used to get a servant that will be used to process the request that caused preinvoke to be called.

Specified by:
preinvoke sample code for org.omg.PortableServer.ServantLocatorOperations.preinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, org.omg.PortableServer.ServantLocatorPackage.CookieHolder) definition code for org.omg.PortableServer.ServantLocatorOperations.preinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, org.omg.PortableServer.ServantLocatorPackage.CookieHolder) in interface ServantLocatorOperations sample code for org.omg.PortableServer.ServantLocatorOperations definition code for org.omg.PortableServer.ServantLocatorOperations
Parameters:
oid - the object id associated with object on which the request was made.
adapter - the reference for POA in which the object is being activated.
operation - the operation name.
the_cookie - an opaque value that can be set by the servant manager to be used during postinvoke.
Returns:
Servant used to process incoming request.
Throws:
ForwardRequest sample code for org.omg.PortableServer.ForwardRequest definition code for org.omg.PortableServer.ForwardRequest - to indicate to the ORB that it is responsible for delivering the current request and subsequent requests to the object denoted in the forward_reference member of the exception.

postinvoke sample code for org.omg.PortableServer._ServantLocatorStub.postinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, java.lang.Object, org.omg.PortableServer.Servant) definition code for org.omg.PortableServer._ServantLocatorStub.postinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, java.lang.Object, org.omg.PortableServer.Servant)

public void postinvoke(byte[] oid,
                       POA sample code for org.omg.PortableServer.POA definition code for org.omg.PortableServer.POA  adapter,
                       String sample code for java.lang.String definition code for java.lang.String  operation,
                       Object sample code for java.lang.Object definition code for java.lang.Object  the_cookie,
                       Servant sample code for org.omg.PortableServer.Servant definition code for org.omg.PortableServer.Servant  the_servant)
This operation is invoked whenener a servant completes a request.

Specified by:
postinvoke sample code for org.omg.PortableServer.ServantLocatorOperations.postinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, java.lang.Object, org.omg.PortableServer.Servant) definition code for org.omg.PortableServer.ServantLocatorOperations.postinvoke(byte[], org.omg.PortableServer.POA, java.lang.String, java.lang.Object, org.omg.PortableServer.Servant) in interface ServantLocatorOperations sample code for org.omg.PortableServer.ServantLocatorOperations definition code for org.omg.PortableServer.ServantLocatorOperations
Parameters:
oid - the object id ssociated with object on which the request was made.
adapter - the reference for POA in which the object was active.
the_cookie - an opaque value that contains the data set by preinvoke.
the_servant - reference to the servant that is associated with the object.

_ids sample code for org.omg.PortableServer._ServantLocatorStub._ids() definition code for org.omg.PortableServer._ServantLocatorStub._ids()

public String sample code for java.lang.String definition code for java.lang.String [] _ids()
Description copied from class: ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl._ids() definition code for org.omg.CORBA.portable.ObjectImpl._ids()
Retrieves a string array containing the repository identifiers supported by this ObjectImpl object. For example, for a stub, this method returns information about all the interfaces supported by the stub.

Specified by:
_ids sample code for org.omg.CORBA.portable.ObjectImpl._ids() definition code for org.omg.CORBA.portable.ObjectImpl._ids() in class ObjectImpl sample code for org.omg.CORBA.portable.ObjectImpl definition code for org.omg.CORBA.portable.ObjectImpl
Returns:
the array of all repository identifiers supported by this ObjectImpl instance