summaryrefslogtreecommitdiff
path: root/trunk/TAO/tao/Default_Endpoint_Selector_Factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tao/Default_Endpoint_Selector_Factory.cpp')
-rw-r--r--trunk/TAO/tao/Default_Endpoint_Selector_Factory.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/trunk/TAO/tao/Default_Endpoint_Selector_Factory.cpp b/trunk/TAO/tao/Default_Endpoint_Selector_Factory.cpp
new file mode 100644
index 00000000000..64fb8f94608
--- /dev/null
+++ b/trunk/TAO/tao/Default_Endpoint_Selector_Factory.cpp
@@ -0,0 +1,45 @@
+// $Id$
+
+#include "tao/Default_Endpoint_Selector_Factory.h"
+#include "tao/Invocation_Endpoint_Selectors.h"
+
+#include "ace/Log_Msg.h"
+
+
+ACE_RCSID (tao,
+ Default_Endpoint_Selector_Factory,
+ "$Id$")
+
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+TAO_Default_Endpoint_Selector_Factory::TAO_Default_Endpoint_Selector_Factory (
+ void)
+ : default_endpoint_selector_ (new TAO_Default_Endpoint_Selector)
+{
+}
+
+TAO_Default_Endpoint_Selector_Factory::~TAO_Default_Endpoint_Selector_Factory (void)
+{
+ delete this->default_endpoint_selector_;
+}
+
+
+TAO_Invocation_Endpoint_Selector *
+TAO_Default_Endpoint_Selector_Factory::get_selector (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+{
+ // Trivial endpoint selector. Just return the default selector.
+ return this->default_endpoint_selector_;
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+// ****************************************************************
+
+ACE_STATIC_SVC_DEFINE (TAO_Default_Endpoint_Selector_Factory,
+ ACE_TEXT ("Default_Endpoint_Selector_Factory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (TAO_Default_Endpoint_Selector_Factory),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0)
+ACE_FACTORY_DEFINE (TAO, TAO_Default_Endpoint_Selector_Factory)