Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / DevGuideExamples / PortableInterceptors / SimpleCodec / ServerInitializer.cpp
blob3874ab1882595f449d5a52a52ffd485f5cce578d
1 #include "ServerInitializer.h"
2 #include "ServerInterceptor.h"
4 ServerInitializer::ServerInitializer ()
8 void
9 ServerInitializer::pre_init (
10 PortableInterceptor::ORBInitInfo_ptr)
14 void
15 ServerInitializer::post_init (
16 PortableInterceptor::ORBInitInfo_ptr info)
18 // get reference to the codec_factory
19 IOP::CodecFactory_var codec_factory = info->codec_factory();
21 // Create and register the request interceptors.
22 PortableInterceptor::ServerRequestInterceptor_var si =
23 new ServerInterceptor (codec_factory);
24 info->add_server_request_interceptor (si.in());