summaryrefslogtreecommitdiff
path: root/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp')
-rw-r--r--TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp b/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp
new file mode 100644
index 00000000000..a74d7ea7277
--- /dev/null
+++ b/TAO/tao/RTCORBA/RT_Endpoint_Selector_Factory.cpp
@@ -0,0 +1,52 @@
+#include "tao/RTCORBA/RT_Endpoint_Selector_Factory.h"
+
+#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
+
+#include "tao/RTCORBA/RT_Invocation_Endpoint_Selectors.h"
+#include "tao/RTCORBA/RT_Endpoint_Utils.h"
+#include "tao/RTCORBA/RT_Stub.h"
+
+#include "tao/Protocols_Hooks.h"
+
+#include "ace/Log_Msg.h"
+
+
+ACE_RCSID (RTCORBA,
+ RT_Endpoint_Selector_Factory,
+ "$Id$")
+
+
+// ****************************************************************
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+RT_Endpoint_Selector_Factory::RT_Endpoint_Selector_Factory (void)
+{
+ ACE_NEW (this->rt_invocation_endpoint_selector_,
+ TAO_RT_Invocation_Endpoint_Selector);
+}
+
+RT_Endpoint_Selector_Factory::~RT_Endpoint_Selector_Factory (void)
+{
+ delete this->rt_invocation_endpoint_selector_;
+}
+
+TAO_Invocation_Endpoint_Selector *
+RT_Endpoint_Selector_Factory::get_selector (ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
+{
+ return this->rt_invocation_endpoint_selector_;
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+// ****************************************************************
+
+ACE_STATIC_SVC_DEFINE (RT_Endpoint_Selector_Factory,
+ ACE_TEXT ("RT_Endpoint_Selector_Factory"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (RT_Endpoint_Selector_Factory),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0)
+ACE_FACTORY_DEFINE (TAO_RTCORBA, RT_Endpoint_Selector_Factory)
+
+#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */