Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / DevGuideExamples / PortableInterceptors / IOR / ServerInitializer.cpp
blob65fba6b3d7e45e979cadc6d9dcbba9b59657f107
1 #include "ServerInitializer.h"
2 #include "ServerInterceptor.h"
3 #include "ServerIORInterceptor.h"
5 ServerInitializer::ServerInitializer ()
9 void
10 ServerInitializer::pre_init (
11 PortableInterceptor::ORBInitInfo_ptr)
15 void
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());