diff options
Diffstat (limited to 'modules/CIAO/ciao/Containers/Container_Base.cpp')
-rw-r--r-- | modules/CIAO/ciao/Containers/Container_Base.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/modules/CIAO/ciao/Containers/Container_Base.cpp b/modules/CIAO/ciao/Containers/Container_Base.cpp new file mode 100644 index 00000000000..fc7e260a491 --- /dev/null +++ b/modules/CIAO/ciao/Containers/Container_Base.cpp @@ -0,0 +1,48 @@ +// $Id$ + +#include "Container_Base.h" +#include "ciao/Logger/Log_Macros.h" + +#if !defined (__ACE_INLINE__) +# include "Container_Base.inl" +#endif /* __ACE_INLINE__ */ + +namespace CIAO +{ + //////////////////////////////////////////////////////////////// + + Container_i::Container_i (CORBA::ORB_ptr o, + PortableServer::POA_ptr root_poa) + : orb_ (CORBA::ORB::_duplicate (o)), + root_poa_ (PortableServer::POA::_duplicate (root_poa)), + container_impl_ (0) + { + } + + Container_i::Container_i (CORBA::ORB_ptr o, + PortableServer::POA_ptr root_poa, + Deployment::CIAO_Container_i *container_impl) + : orb_ (CORBA::ORB::_duplicate (o)), + root_poa_ (PortableServer::POA::_duplicate (root_poa)), + container_impl_ (container_impl) + { + } + + Container_i::~Container_i (void) + { + if (! CORBA::is_nil (this->component_poa_.in ())) + { + this->component_poa_->destroy (1, 1); + } + + if (! CORBA::is_nil (this->facet_cons_poa_.in ())) + { + this->facet_cons_poa_->destroy (1, 1); + } + + if (! CORBA::is_nil (this->home_servant_poa_.in ())) + { + this->home_servant_poa_->destroy (1, 1); + } + } +} |