Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Bug_3748_Regression / Server_ORBInitializer.cpp
blob4242dc7a94ca11cdcf15e67854661f9bd64f2552
1 // -*- C++ -*-
3 #include "Server_ORBInitializer.h"
4 #include "Test_Protocols_Hooks.h"
5 #include "tao/ORB_Core.h"
6 #include "tao/PI/ORBInitInfo.h"
8 Server_ORBInitializer::Server_ORBInitializer (void)
12 void
13 Server_ORBInitializer::pre_init (
14 PortableInterceptor::ORBInitInfo_ptr info)
16 // Narrow to a TAO_ORBInitInfo object to get access to the
17 // orb_core() TAO extension.
18 TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info);
20 if (CORBA::is_nil (tao_info.in ()))
22 throw ::CORBA::INTERNAL ();
25 tao_info->orb_core ()->orb_params ()->protocols_hooks_name ("Test_Protocols_Hooks");
26 ACE_Service_Config::process_directive (ace_svc_desc_Test_Protocols_Hooks);
29 void
30 Server_ORBInitializer::post_init (
31 PortableInterceptor::ORBInitInfo_ptr)
33 // No-op.