#include <POA_Current_Impl.h>
Collaboration diagram for TAO::Portable_Server::POA_Current_Impl:
Public Member Functions | |
PortableServer::POA_ptr | get_POA (void) |
PortableServer::ObjectId * | get_object_id (void) |
PortableServer::Servant | get_servant (void) |
void | poa (::TAO_Root_POA *) |
Set the POA implementation. | |
::TAO_Root_POA * | poa (void) const |
Get the POA implemantation. | |
TAO_ORB_Core & | orb_core (void) const |
ORB Core for this current. | |
void | object_id (const PortableServer::ObjectId &id) |
Set the object ID. | |
const PortableServer::ObjectId & | object_id (void) const |
Get the object ID. | |
void | replace_object_id (const PortableServer::ObjectId &system_id) |
Just replace the object id smartly. | |
void | object_key (const TAO::ObjectKey &key) |
Set the object key. | |
const TAO::ObjectKey & | object_key (void) const |
Get the object key. | |
void | servant (PortableServer::Servant servant) |
Set the servant for the current upcall. | |
PortableServer::Servant | servant (void) const |
Get the servant for the current upcall. | |
void | priority (CORBA::Short priority) |
Set the priority for the current upcall. | |
CORBA::Short | priority (void) const |
Get the priority for the current upcall. | |
POA_Current_Impl (void) | |
Convenience constructor combining construction & initialization. | |
POA_Current_Impl * | previous (void) const |
Return the previous current implementation. | |
void | teardown (void) |
Teardown the current for this request. | |
void | setup (::TAO_Root_POA *impl, const TAO::ObjectKey &key) |
Setup the current. | |
Protected Member Functions | |
POA_Current_Impl (const POA_Current_Impl &) | |
void | operator= (const POA_Current_Impl &) |
Protected Attributes | |
::TAO_Root_POA * | poa_ |
The POA implementation invoking an upcall. | |
PortableServer::ObjectId | object_id_ |
const TAO::ObjectKey * | object_key_ |
The object key of the current context. | |
PortableServer::Servant | servant_ |
The servant for the current upcall. | |
CORBA::Short | priority_ |
The priority for the current upcall. | |
POA_Current_Impl * | previous_current_impl_ |
Current previous from <this>. | |
int | setup_done_ |
Is setup complete? | |
TAO_TSS_Resources * | tss_resources_ |
Pointer to tss resources. | |
Friends | |
class | ::TAO_Root_POA |
Objects of this class hold state information regarding the current POA invocation. Savvy readers will notice that this contains substantially more methods than the POA spec shows; they exist because the ORB either (a) needs them or (b) finds them useful for implementing a more efficient ORB. The intent is that instances of this class are held in Thread-Specific Storage so that upcalls can get context information regarding their invocation. The POA itself must insure that all <set_*> operations are performed in the execution thread so that the proper <tao_poa_current> pointer is obtained from TSS.
|
Convenience constructor combining construction & initialization.
|
|
|
|
Return pointer to the object id through which this was invoked. This may be necessary in cases where a <servant> is serving under the guise of multiple object ids. This has _out semantics Raises the <CORBA::NoContext> exception. |
|
Return pointer to the invoking POA. Raises the <CORBA::NoContext> exception. |
|
Returns a reference to the servant that hosts the object in whose context it is called. If called outside the context of the POA dispatched operation, a NoContext exception is raised |
|
Get the object ID.
|
|
Set the object ID.
|
|
Get the object key.
|
|
Set the object key.
|
|
|
|
ORB Core for this current.
|
|
Get the POA implemantation.
|
|
Set the POA implementation.
|
|
Return the previous current implementation.
|
|
Get the priority for the current upcall.
|
|
Set the priority for the current upcall.
|
|
Just replace the object id smartly.
|
|
Get the servant for the current upcall.
|
|
Set the servant for the current upcall.
|
|
Setup the current.
|
|
Teardown the current for this request.
|
|
|
|
The object ID of the current context. This is the user id and not the id the goes into the IOR. Note also that unlike the <object_key>, this field is stored by value. |
|
The object key of the current context.
|
|
The POA implementation invoking an upcall.
|
|
Current previous from <this>.
|
|
The priority for the current upcall.
|
|
The servant for the current upcall.
|
|
Is setup complete?
|
|
Pointer to tss resources.
|