blob: 8e866e97052e3289d665a7ee6446dfb4c477388c (
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
|
// -*- C++ -*-
#include "ace/Log_Msg.h"
ACE_RCSID (Current_Test_Lib,
Server_ORBInitializer,
"$Id$")
#include "Server_Request_Interceptor.h"
#include "Server_ORBInitializer.h"
namespace Test
{
Server_ORBInitializer::Server_ORBInitializer
(PortableInterceptor::ServerRequestInterceptor_ptr interceptor)
: interceptor_
(PortableInterceptor::ServerRequestInterceptor::_duplicate (interceptor))
{
/* no-op */
}
Server_ORBInitializer::~Server_ORBInitializer (void)
{
/* no-op */
}
void
Server_ORBInitializer::pre_init(PortableInterceptor::ORBInitInfo*)
{
/* no-op */
}
// A specialization to handle client-side interceptors
void Server_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo* oii)
{
oii->add_server_request_interceptor (this->interceptor_.in ());
}
}
|