Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_Connect_Creation_Strategy Class Template Reference

Creation strategy helper. More...

#include <Connector_Impl.h>

Inheritance diagram for TAO_Connect_Creation_Strategy:

Inheritance graph
[legend]
Collaboration diagram for TAO_Connect_Creation_Strategy:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Connect_Creation_Strategy (ACE_Thread_Manager *=0, TAO_ORB_Core *orb_core=0, void *arg=0, CORBA::Boolean flag=0)
 Constructor. <arg> parameter is used to pass any special state/info to the service handler upon creation. Currently used by IIOP and UIOP to pass protocol configuration properties. More...

virtual int make_svc_handler (SVC_HANDLER *&sh)
 Makes TAO_*_Client_Connection_Handlers. More...


Private Attributes

TAO_ORB_Coreorb_core_
 Pointer to the ORB_Core on which we are activated. More...

void * arg_
 Some info/state to be passed to the service handler we create. More...

CORBA::Boolean lite_flag_
 Are we using GIOP lite? More...


Detailed Description

template<class SVC_HANDLER>
class TAO_Connect_Creation_Strategy< SVC_HANDLER >

Creation strategy helper.

Creates the TAO_*_Connection_Handler object for the TAO_*_Connector objects. This template class can now be used by all the Connector objects instead of having to duplicate code. This class can be used to set any required properties on the connection handlers at creation time.

Definition at line 43 of file Connector_Impl.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER>
TAO_Connect_Creation_Strategy< SVC_HANDLER >::TAO_Connect_Creation_Strategy ACE_Thread_Manager   = 0,
TAO_ORB_Core   orb_core = 0,
void *    arg = 0,
CORBA::Boolean    flag = 0
 

Constructor. <arg> parameter is used to pass any special state/info to the service handler upon creation. Currently used by IIOP and UIOP to pass protocol configuration properties.

Definition at line 20 of file Connector_Impl.cpp.

00024     : ACE_Creation_Strategy <SVC_HANDLER> (t),
00025       orb_core_ (orb_core),
00026       arg_ (arg),
00027       lite_flag_ (flag)
00028 {
00029 
00030 }


Member Function Documentation

template<class SVC_HANDLER>
int TAO_Connect_Creation_Strategy< SVC_HANDLER >::make_svc_handler SVC_HANDLER *&    sh [virtual]
 

Makes TAO_*_Client_Connection_Handlers.

Reimplemented from ACE_Creation_Strategy.

Definition at line 33 of file Connector_Impl.cpp.

References ACE_NEW_RETURN.

00034 {
00035   if (sh == 0)
00036     ACE_NEW_RETURN (sh,
00037                     SVC_HANDLER (this->orb_core_,
00038                                  this->lite_flag_,
00039                                  this->arg_),
00040                     -1);
00041 
00042   // Add a reference count. Why is this needed? We need this to make
00043   // sure that the connector doesnt delete this handler when we are
00044   // waiting for non-blocking connects to complete.
00045 
00046   // REFCNT: matches decr_refcount() in XXX_Connector::make_connection()
00047   sh->incr_refcount ();
00048 
00049   return 0;
00050 }


Member Data Documentation

template<class SVC_HANDLER>
void* TAO_Connect_Creation_Strategy::arg_ [private]
 

Some info/state to be passed to the service handler we create.

Definition at line 65 of file Connector_Impl.h.

template<class SVC_HANDLER>
CORBA::Boolean TAO_Connect_Creation_Strategy::lite_flag_ [private]
 

Are we using GIOP lite?

Definition at line 68 of file Connector_Impl.h.

template<class SVC_HANDLER>
TAO_ORB_Core* TAO_Connect_Creation_Strategy::orb_core_ [private]
 

Pointer to the ORB_Core on which we are activated.

Definition at line 62 of file Connector_Impl.h.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:11:09 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002