blob: c8d3752852d733637e70dab50c752a9dae1d5c94 (
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
|
// -*- C++ -*-
// $Id$
#include "ace/Log_Msg.h"
#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 ());
}
}
|