TAO_Connect_Creation_Strategy< SVC_HANDLER > Class Template Reference

Creation strategy helper. More...

#include <Connector_Impl.h>

Inheritance diagram for TAO_Connect_Creation_Strategy< SVC_HANDLER >:

Inheritance graph
[legend]
Collaboration diagram for TAO_Connect_Creation_Strategy< SVC_HANDLER >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Connect_Creation_Strategy (ACE_Thread_Manager *=0, TAO_ORB_Core *orb_core=0, CORBA::Boolean flag=false)
 Constructor.

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


Private Attributes

TAO_ORB_Core *const  orb_core_
 Pointer to the ORB_Core on which we are activated.

CORBA::Boolean const  lite_flag_
 Are we using GIOP lite?


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 47 of file Connector_Impl.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Connect_Creation_Strategy< SVC_HANDLER >::TAO_Connect_Creation_Strategy ACE_Thread_Manager = 0,
TAO_ORB_Core orb_core = 0,
CORBA::Boolean  flag = false
 

Constructor.

Definition at line 16 of file Connector_Impl.cpp.

00019     : ACE_Creation_Strategy <SVC_HANDLER> (t),
00020       orb_core_ (orb_core),
00021       lite_flag_ (flag)
00022 {
00023 
00024 }


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< SVC_HANDLER >.

Definition at line 27 of file Connector_Impl.cpp.

References ACE_NEW_RETURN.

00028 {
00029   if (sh == 0)
00030     ACE_NEW_RETURN (sh,
00031                     SVC_HANDLER (this->orb_core_,
00032                                  this->lite_flag_),
00033                     -1);
00034 
00035   // We add to the #REFCOUNT# since the Connector needs this. See
00036   // Connector::make_connection() for details.
00037   sh->add_reference ();
00038 
00039    // At this point, the #REFCOUNT# is two.
00040 
00041   return 0;
00042 }


Member Data Documentation

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

Are we using GIOP lite?

Definition at line 66 of file Connector_Impl.h.

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

Pointer to the ORB_Core on which we are activated.

Definition at line 63 of file Connector_Impl.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:12:48 2006 for TAO by doxygen 1.3.6