Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / DevGuideExamples / PortableInterceptors / Auth / ClientInitializer.cpp
blob12fe3748671c45d753dea216ef3fe657f402e78b
1 #include "ClientInitializer.h"
2 #include "ClientInterceptor.h"
3 #include <iostream>
5 ClientInitializer::ClientInitializer (void)
9 void
10 ClientInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr)
14 void
15 ClientInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr info)
18 // Create and register the request interceptors.
19 PortableInterceptor::ClientRequestInterceptor_ptr ci =
20 PortableInterceptor::ClientRequestInterceptor::_nil ();
22 try
24 ci = new ClientInterceptor();
26 catch(...)
28 std::cerr << "Exception occurred creating ClientInterceptor" << std::endl;
31 PortableInterceptor::ClientRequestInterceptor_var ci_interceptor =
32 ci;
34 info->add_client_request_interceptor (ci_interceptor.in ());