1 #include "ServerInitializer.h"
2 #include "ServerInterceptor.h"
3 #include "ServerIORInterceptor.h"
5 ServerInitializer::ServerInitializer ()
10 ServerInitializer::pre_init (
11 PortableInterceptor::ORBInitInfo_ptr
)
16 ServerInitializer::post_init (
17 PortableInterceptor::ORBInitInfo_ptr info
)
19 // get reference to the codec_factory
20 IOP::CodecFactory_var codec_factory
= info
->codec_factory();
22 // Create and register the request interceptors.
23 PortableInterceptor::ServerRequestInterceptor_var si
=
24 new ServerInterceptor (codec_factory
);
25 info
->add_server_request_interceptor (si
.in());
27 // add IOR Interceptor
28 PortableInterceptor::IORInterceptor_var iori
= new ServerIORInterceptor
;
29 info
->add_ior_interceptor (iori
.in());