blob: b812a1851f34c2875ffab52e22266bee1698a85c (
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
|
#include "ClientInitializer.h"
#include "ClientInterceptor.h"
ClientInitializer::ClientInitializer (void)
{
}
void
ClientInitializer::pre_init (
PortableInterceptor::ORBInitInfo_ptr
)
{
}
void
ClientInitializer::post_init (
PortableInterceptor::ORBInitInfo_ptr info
)
{
// get Codec factory
IOP::CodecFactory_var codec_factory = info->codec_factory();
// Create and register the request interceptors.
PortableInterceptor::ClientRequestInterceptor_var ci =
new ClientInterceptor (codec_factory);
info->add_client_request_interceptor (ci.in());
}
|