Default_Endpoint_Selector_Factory.cpp

Go to the documentation of this file.
00001 // $Id: Default_Endpoint_Selector_Factory.cpp 76551 2007-01-24 13:42:44Z johnnyw $
00002 
00003 #include "tao/Default_Endpoint_Selector_Factory.h"
00004 #include "tao/Invocation_Endpoint_Selectors.h"
00005 
00006 #include "ace/Log_Msg.h"
00007 
00008 
00009 ACE_RCSID (tao,
00010            Default_Endpoint_Selector_Factory,
00011            "$Id: Default_Endpoint_Selector_Factory.cpp 76551 2007-01-24 13:42:44Z johnnyw $")
00012 
00013 
00014 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00015 
00016 TAO_Default_Endpoint_Selector_Factory::TAO_Default_Endpoint_Selector_Factory (
00017   void)
00018   : default_endpoint_selector_ (new TAO_Default_Endpoint_Selector)
00019 {
00020 }
00021 
00022 TAO_Default_Endpoint_Selector_Factory::~TAO_Default_Endpoint_Selector_Factory (void)
00023 {
00024   delete this->default_endpoint_selector_;
00025 }
00026 
00027 
00028 TAO_Invocation_Endpoint_Selector *
00029 TAO_Default_Endpoint_Selector_Factory::get_selector (void)
00030 {
00031   // Trivial endpoint selector.  Just return the default selector.
00032   return this->default_endpoint_selector_;
00033 }
00034 
00035 TAO_END_VERSIONED_NAMESPACE_DECL
00036 
00037 // ****************************************************************
00038 
00039 ACE_STATIC_SVC_DEFINE (TAO_Default_Endpoint_Selector_Factory,
00040                        ACE_TEXT ("Default_Endpoint_Selector_Factory"),
00041                        ACE_SVC_OBJ_T,
00042                        &ACE_SVC_NAME (TAO_Default_Endpoint_Selector_Factory),
00043                        ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00044                        0)
00045 ACE_FACTORY_DEFINE (TAO, TAO_Default_Endpoint_Selector_Factory)

Generated on Tue Feb 2 17:37:51 2010 for TAO by  doxygen 1.4.7