blob: fc7e260a491011e132b7288d246e6a2bafc3588e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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);
}
}
}
|