blob: b25dd4427576bd51020b1aa4b3b77e2b291a9aad (
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
|
#include "Session_Factory.h"
#include "Session.h"
#include "Servant_var.h"
Session_Factory::Session_Factory (CORBA::ORB_ptr orb,
PortableServer::POA_ptr poa)
: orb_ (CORBA::ORB::_duplicate (orb))
, poa_ (PortableServer::POA::_duplicate (poa))
{
}
Test::Session_ptr
Session_Factory::create_new_session (Test::Callback_ptr cb)
{
Servant_var<Session> session_impl (new Session (cb,
this->poa_.in ()));
return session_impl->_this ();
}
void
Session_Factory::shutdown (void)
{
this->orb_->shutdown (false);
}
PortableServer::POA_ptr
Session_Factory::_default_POA (void)
{
return PortableServer::POA::_duplicate (this->poa_.in ());
}
|