1 #include "tao/Strategies/Strategies_ORBInitializer.h"
2 #include "tao/Exception.h"
3 #include "tao/ORB_Core.h"
4 #include "tao/PI/ORBInitInfo.h"
7 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
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");
33 TAO_Strategies_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr
)
37 TAO_END_VERSIONED_NAMESPACE_DECL