Strategies_ORBInitializer.cpp

Go to the documentation of this file.
00001 #include "tao/Strategies/Strategies_ORBInitializer.h"
00002 
00003 ACE_RCSID (Strategies,
00004            Strategies_ORBInitializer,
00005            "$Id: Strategies_ORBInitializer.cpp 78787 2007-07-05 08:02:28Z johnnyw $")
00006 
00007 #include "tao/Exception.h"
00008 #include "tao/ORB_Core.h"
00009 #include "tao/PI/ORBInitInfo.h"
00010 #include "tao/debug.h"
00011 
00012 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00013 
00014 void
00015 TAO_Strategies_ORBInitializer::pre_init (PortableInterceptor::ORBInitInfo_ptr info)
00016 {
00017   // Narrow to a TAO_ORBInitInfo object to get access to the
00018   // orb_core() TAO extension.
00019   TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info);
00020 
00021   if (CORBA::is_nil (tao_info.in ()))
00022     {
00023       if (TAO_debug_level > 0)
00024         ACE_ERROR ((LM_ERROR,
00025                     "(%P|%t) TAO_Strategies_ORBInitializer::pre_init:\n"
00026                     "(%P|%t)    Unable to narrow "
00027                     "\"PortableInterceptor::ORBInitInfo_ptr\" to\n"
00028                     "(%P|%t)   \"TAO_ORBInitInfo *.\"\n"));
00029 
00030       throw ::CORBA::INTERNAL ();
00031     }
00032 
00033   // Make sure we get the correct endpoint selector
00034   tao_info->orb_core ()->orb_params ()->endpoint_selector_factory_name ("OC_Endpoint_Selector_Factory");
00035 }
00036 
00037 void
00038 TAO_Strategies_ORBInitializer::post_init (PortableInterceptor::ORBInitInfo_ptr)
00039 {
00040 }
00041 
00042 TAO_END_VERSIONED_NAMESPACE_DECL
00043 

Generated on Tue Feb 2 17:47:18 2010 for TAO_Strategies by  doxygen 1.4.7