summaryrefslogtreecommitdiff
path: root/modules/CIAO/ciao/Upgradeable_Context_Impl_T.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/ciao/Upgradeable_Context_Impl_T.cpp')
-rw-r--r--modules/CIAO/ciao/Upgradeable_Context_Impl_T.cpp88
1 files changed, 88 insertions, 0 deletions
diff --git a/modules/CIAO/ciao/Upgradeable_Context_Impl_T.cpp b/modules/CIAO/ciao/Upgradeable_Context_Impl_T.cpp
new file mode 100644
index 00000000000..33c3621dd48
--- /dev/null
+++ b/modules/CIAO/ciao/Upgradeable_Context_Impl_T.cpp
@@ -0,0 +1,88 @@
+// $Id$
+
+#ifndef CIAO_UPGRADEABLE_CONTEXT_IMPL_T_C
+#define CIAO_UPGRADEABLE_CONTEXT_IMPL_T_C
+
+#include "Upgradeable_Context_Impl_T.h"
+
+namespace CIAO
+{
+ template <typename BASE_CTX,
+ typename SVNT,
+ typename COMP,
+ typename COMP_VAR>
+ Upgradeable_Context_Impl<BASE_CTX, SVNT, COMP, COMP_VAR>::
+ Upgradeable_Context_Impl (
+ Components::CCMHome_ptr home,
+ Session_Container *c,
+ SVNT *sv)
+ : session_context (home, c, sv),
+ servant_ (sv)
+ {
+ }
+
+ template <typename BASE_CTX,
+ typename SVNT,
+ typename COMP,
+ typename COMP_VAR>
+ Upgradeable_Context_Impl<BASE_CTX, SVNT, COMP, COMP_VAR>::
+ ~Upgradeable_Context_Impl (void)
+ {
+ }
+
+ template <typename BASE_CTX,
+ typename SVNT,
+ typename COMP,
+ typename COMP_VAR>
+ void
+ Upgradeable_Context_Impl<BASE_CTX, SVNT, COMP, COMP_VAR>::deactivate_facet (
+ const PortableServer::ObjectId &oid)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+ {
+ /*
+ PortableServer::ObjectId_var oid =
+ PortableServer::string_to_ObjectId (obj_id);
+ */
+
+ this->container_->deactivate_facet (oid);
+ }
+
+ template <typename BASE_CTX,
+ typename SVNT,
+ typename COMP,
+ typename COMP_VAR>
+ void
+ Upgradeable_Context_Impl<BASE_CTX, SVNT, COMP, COMP_VAR>::
+ remove_facet (CORBA::Object_ptr reference)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+ {
+ PortableServer::ObjectId_var oid =
+ this->container_->the_facet_cons_POA ()->reference_to_id (reference);
+
+ this->update_port_activator (oid.in ());
+
+ this->deactivate_facet (oid.in ());
+ }
+
+ template <typename BASE_CTX,
+ typename SVNT,
+ typename COMP,
+ typename COMP_VAR>
+ void
+ Upgradeable_Context_Impl<BASE_CTX, SVNT, COMP, COMP_VAR>::
+ update_port_activator (const PortableServer::ObjectId &oid)
+ ACE_THROW_SPEC ((CORBA::SystemException))
+ {
+ /*
+ PortableServer::ObjectId_var oid =
+ PortableServer::string_to_ObjectId (obj_id);
+ */
+
+ CIAO::Servant_Activator *sa =
+ this->container_->ports_servant_activator ();
+ sa->update_port_activator (oid);
+ }
+
+}
+
+#endif /* CIAO_UPGRADEABLE_CONTEXT_IMPL_T_C */