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

TAO_Creation_Strategy Class Template Reference

Creates a Svc_Handler and set the ORB_Core pointer on it. More...

#include <Acceptor_Impl.h>

Inheritance diagram for TAO_Creation_Strategy:

Inheritance graph
[legend]
Collaboration diagram for TAO_Creation_Strategy:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_Creation_Strategy (TAO_ORB_Core *orb_core, void *arg=0, CORBA::Boolean flag=0)
int make_svc_handler (SVC_HANDLER *&sh)
 Create a SVC_HANDLER and set the ORB_Core pointer on it. More...


Protected Attributes

TAO_ORB_Coreorb_core_
 Pointer to the ORB Core. More...

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

CORBA::Boolean lite_flag_
 Should we use the Lite version for any protocol? More...


Detailed Description

template<class SVC_HANDLER>
class TAO_Creation_Strategy< SVC_HANDLER >

Creates a Svc_Handler and set the ORB_Core pointer on it.

Definition at line 35 of file Acceptor_Impl.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER>
TAO_Creation_Strategy< SVC_HANDLER >::TAO_Creation_Strategy TAO_ORB_Core   orb_core,
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 47 of file Acceptor_Impl.cpp.

00050   : orb_core_ (orb_core),
00051     arg_ (arg),
00052     lite_flag_ (flag)
00053 {
00054 }


Member Function Documentation

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

Create a SVC_HANDLER and set the ORB_Core pointer on it.

Reimplemented from ACE_Creation_Strategy.

Definition at line 57 of file Acceptor_Impl.cpp.

References ACE_NEW_RETURN, TAO_ORB_Core::lane_resources, orb_core_, TAO_Transport_Cache_Manager::purge, and TAO_Thread_Lane_Resources::transport_cache.

00058 {
00059   if (sh == 0)
00060     {
00061       // Purge connections (if necessary)
00062       this->orb_core_->lane_resources ().transport_cache ().purge ();
00063 
00064       ACE_NEW_RETURN (sh,
00065                       SVC_HANDLER (this->orb_core_,
00066                                    this->lite_flag_,
00067                                    this->arg_),
00068                       -1);
00069     }
00070 
00071   return 0;
00072 }


Member Data Documentation

template<class SVC_HANDLER>
void* TAO_Creation_Strategy::arg_ [protected]
 

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

Definition at line 55 of file Acceptor_Impl.h.

template<class SVC_HANDLER>
CORBA::Boolean TAO_Creation_Strategy::lite_flag_ [protected]
 

Should we use the Lite version for any protocol?

Definition at line 58 of file Acceptor_Impl.h.

template<class SVC_HANDLER>
TAO_ORB_Core* TAO_Creation_Strategy::orb_core_ [protected]
 

Pointer to the ORB Core.

Definition at line 52 of file Acceptor_Impl.h.

Referenced by make_svc_handler.


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