summaryrefslogtreecommitdiff
path: root/TAO/tao/PI/PICurrent_Loader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PI/PICurrent_Loader.cpp')
-rw-r--r--TAO/tao/PI/PICurrent_Loader.cpp55
1 files changed, 55 insertions, 0 deletions
diff --git a/TAO/tao/PI/PICurrent_Loader.cpp b/TAO/tao/PI/PICurrent_Loader.cpp
new file mode 100644
index 00000000000..639ad627d58
--- /dev/null
+++ b/TAO/tao/PI/PICurrent_Loader.cpp
@@ -0,0 +1,55 @@
+/* -*- C++ -*- */
+
+// =================================================================
+/**
+ * @file PICurrent_Loader.cpp
+ *
+ * $Id$
+ *
+ * @author Johnny Willemsen <jwillemsen@remedy.nl>
+ *
+ */
+// =================================================================
+
+#include "tao/PI/PICurrent_Loader.h"
+
+#if TAO_HAS_INTERCEPTORS == 1
+
+#include "tao/PI/PICurrent.h"
+
+#include "tao/ORB.h"
+#include "tao/ORB_Core.h"
+#include "tao/debug.h"
+
+ACE_RCSID (PI,
+ PICurrent_Loader,
+ "$Id$")
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+CORBA::Object_ptr
+TAO_PICurrent_Loader::create_object (
+ CORBA::ORB_ptr orb,
+ int,
+ ACE_TCHAR *[]
+ ACE_ENV_ARG_DECL_NOT_USED)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+{
+ CORBA::Object_ptr obj = CORBA::Object::_nil ();
+ ACE_NEW_RETURN (obj,
+ TAO::PICurrent (*orb->orb_core ()),
+ CORBA::Object::_nil ());
+ return obj;
+}
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+ACE_STATIC_SVC_DEFINE (TAO_PICurrent_Loader,
+ ACE_TEXT ("PICurrent_Loader"),
+ ACE_SVC_OBJ_T,
+ &ACE_SVC_NAME (TAO_PICurrent_Loader),
+ ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
+ 0)
+ACE_FACTORY_DEFINE (TAO_PI, TAO_PICurrent_Loader)
+
+#endif /* TAO_HAS_INTERCEPTORS == 1 */