Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / DevGuideExamples / PortableInterceptors / Auth / ClientInitializer.cpp
blobdc1627055d031fcf407ed65aba2944ef80d31079
1 #include "ClientInitializer.h"
2 #include "ClientInterceptor.h"
3 #include <iostream>
5 ClientInitializer::ClientInitializer ()
9 void
10 ClientInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr)
14 void
15 ClientInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr info)
17 // Create and register the request interceptors.
18 PortableInterceptor::ClientRequestInterceptor_ptr ci =
19 PortableInterceptor::ClientRequestInterceptor::_nil ();
21 try
23 ci = new ClientInterceptor();
25 catch(...)
27 std::cerr << "Exception occurred creating ClientInterceptor" << std::endl;
30 PortableInterceptor::ClientRequestInterceptor_var ci_interceptor =
31 ci;
33 info->add_client_request_interceptor (ci_interceptor.in ());