blob: 40112cc0b5a40b9793f47477679a6ac226bc4add (
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
|
// -*- C++ -*-
#include "ace/Log_Msg.h"
ACE_RCSID (Current_Test_Lib,
Client_ORBInitializer,
"$Id$")
#include "Client_Request_Interceptor.h"
#include "Client_ORBInitializer.h"
namespace Test
{
Client_ORBInitializer::Client_ORBInitializer
(PortableInterceptor::ClientRequestInterceptor_ptr interceptor)
: interceptor_
(PortableInterceptor::ClientRequestInterceptor::_duplicate (interceptor))
{
/* no-op */
}
Client_ORBInitializer::~Client_ORBInitializer (void)
{
/* no-op */
}
void
Client_ORBInitializer::pre_init(PortableInterceptor::ORBInitInfo*)
throw (CORBA::SystemException)
{
/* no-op */
}
// A specialization to handle client-side interceptors
void Client_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo* oii)
throw (CORBA::SystemException)
{
oii->add_client_request_interceptor (this->interceptor_.in ());
}
}
|