1 #include "tao/Default_Endpoint_Selector_Factory.h"
2 #include "tao/Invocation_Endpoint_Selectors.h"
4 #include "ace/Log_Msg.h"
6 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
8 TAO_Default_Endpoint_Selector_Factory::TAO_Default_Endpoint_Selector_Factory (
10 : default_endpoint_selector_ (new TAO_Default_Endpoint_Selector
)
14 TAO_Default_Endpoint_Selector_Factory::~TAO_Default_Endpoint_Selector_Factory ()
16 delete this->default_endpoint_selector_
;
20 TAO_Invocation_Endpoint_Selector
*
21 TAO_Default_Endpoint_Selector_Factory::get_selector ()
23 // Trivial endpoint selector. Just return the default selector.
24 return this->default_endpoint_selector_
;
27 // ****************************************************************
29 ACE_STATIC_SVC_DEFINE (TAO_Default_Endpoint_Selector_Factory
,
30 ACE_TEXT ("Default_Endpoint_Selector_Factory"),
32 &ACE_SVC_NAME (TAO_Default_Endpoint_Selector_Factory
),
33 ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ
,
35 ACE_FACTORY_DEFINE (TAO
, TAO_Default_Endpoint_Selector_Factory
)
37 TAO_END_VERSIONED_NAMESPACE_DECL