Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tao / Strategies / Strategies_ORBInitializer.cpp
blobebb4a6a37a62ff4557fbf4e4604fff3d50fc02f9
1 #include "tao/Strategies/Strategies_ORBInitializer.h"
2 #include "tao/Exception.h"
3 #include "tao/ORB_Core.h"
4 #include "tao/PI/ORBInitInfo.h"
5 #include "tao/debug.h"
7 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
9 void
10 TAO_Strategies_ORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr info)
12 // Narrow to a TAO_ORBInitInfo object to get access to the
13 // orb_core() TAO extension.
14 TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info);
16 if (CORBA::is_nil (tao_info.in ()))
18 if (TAO_debug_level > 0)
19 TAOLIB_ERROR ((LM_ERROR,
20 "(%P|%t) TAO_Strategies_ORBInitializer::pre_init:\n"
21 "(%P|%t) Unable to narrow "
22 "\"PortableInterceptor::ORBInitInfo_ptr\" to\n"
23 "(%P|%t) \"TAO_ORBInitInfo *.\"\n"));
25 throw ::CORBA::INTERNAL ();
28 // Make sure we get the correct endpoint selector
29 tao_info->orb_core ()->orb_params ()->endpoint_selector_factory_name ("OC_Endpoint_Selector_Factory");
32 void
33 TAO_Strategies_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr)
37 TAO_END_VERSIONED_NAMESPACE_DECL