blob: 4242dc7a94ca11cdcf15e67854661f9bd64f2552 (
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
|
// -*- C++ -*-
#include "Server_ORBInitializer.h"
#include "Test_Protocols_Hooks.h"
#include "tao/ORB_Core.h"
#include "tao/PI/ORBInitInfo.h"
Server_ORBInitializer::Server_ORBInitializer (void)
{
}
void
Server_ORBInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr info)
{
// Narrow to a TAO_ORBInitInfo object to get access to the
// orb_core() TAO extension.
TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info);
if (CORBA::is_nil (tao_info.in ()))
{
throw ::CORBA::INTERNAL ();
}
tao_info->orb_core ()->orb_params ()->protocols_hooks_name ("Test_Protocols_Hooks");
ACE_Service_Config::process_directive (ace_svc_desc_Test_Protocols_Hooks);
}
void
Server_ORBInitializer::post_init (
PortableInterceptor::ORBInitInfo_ptr)
{
// No-op.
}
|