2 #include "Echo_Client_ORBInitializer.h"
4 #if TAO_HAS_INTERCEPTORS == 1
6 #include "client_interceptor.h"
8 Echo_Client_ORBInitializer::Echo_Client_ORBInitializer (int& result
) : result_ (result
)
13 Echo_Client_ORBInitializer::pre_init (
14 PortableInterceptor::ORBInitInfo_ptr
)
19 Echo_Client_ORBInitializer::post_init (
20 PortableInterceptor::ORBInitInfo_ptr info
)
22 PortableInterceptor::ClientRequestInterceptor_ptr interceptor
=
23 PortableInterceptor::ClientRequestInterceptor::_nil ();
25 // Install the Echo client request interceptor
26 ACE_NEW_THROW_EX (interceptor
,
27 Echo_Client_Request_Interceptor (this->result_
),
30 PortableInterceptor::ClientRequestInterceptor_var
31 client_interceptor
= interceptor
;
33 info
->add_client_request_interceptor (client_interceptor
.in ());
36 #endif /* TAO_HAS_INTERCEPTORS == 1 */