TAO_PortableGroup_ORBInitializer Class Reference

PortableGroup ORB initializer. More...

#include <PortableGroup_ORBInitializer.h>

Inheritance diagram for TAO_PortableGroup_ORBInitializer:

Inheritance graph
[legend]
Collaboration diagram for TAO_PortableGroup_ORBInitializer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void pre_init (PortableInterceptor::ORBInitInfo_ptr info)
virtual void post_init (PortableInterceptor::ORBInitInfo_ptr info)

Detailed Description

PortableGroup ORB initializer.

Definition at line 38 of file PortableGroup_ORBInitializer.h.


Member Function Documentation

void TAO_PortableGroup_ORBInitializer::post_init PortableInterceptor::ORBInitInfo_ptr  info  )  [virtual]
 

Definition at line 59 of file PortableGroup_ORBInitializer.cpp.

00061 {
00062 }

TAO_BEGIN_VERSIONED_NAMESPACE_DECL void TAO_PortableGroup_ORBInitializer::pre_init PortableInterceptor::ORBInitInfo_ptr  info  )  [virtual]
 

Definition at line 22 of file PortableGroup_ORBInitializer.cpp.

References ACE_ERROR, ACE_NEW_THROW_EX, ACE_TEXT_ALWAYS_CHAR, CORBA::is_nil(), LM_ERROR, pg_poa_factory_directive, pg_poa_factory_name, and TAO_debug_level.

00024 {
00025   // Narrow to a TAO_ORBInitInfo object to get access to the
00026   // orb_core() TAO extension.
00027   TAO_ORBInitInfo_var tao_info = TAO_ORBInitInfo::_narrow (info);
00028 
00029   if (CORBA::is_nil (tao_info.in ()))
00030     {
00031       if (TAO_debug_level > 0)
00032         ACE_ERROR ((LM_ERROR,
00033                     "(%P|%t) PortableGroup_ORBInitializer::pre_init:\n"
00034                     "(%P|%t)    Unable to narrow "
00035                     "\"PortableInterceptor::ORBInitInfo_ptr\" to\n"
00036                     "(%P|%t)   \"TAO_ORBInitInfo_ptr.\"\n"));
00037 
00038       throw CORBA::INTERNAL ();
00039     }
00040 
00041   // Set a new request dispatcher in the ORB.
00042   PortableGroup_Request_Dispatcher *rd = 0;
00043   ACE_NEW_THROW_EX (rd,
00044                     PortableGroup_Request_Dispatcher (),
00045                     CORBA::NO_MEMORY (
00046                       CORBA::SystemException::_tao_minor_code (
00047                         TAO::VMCID,
00048                         ENOMEM),
00049                       CORBA::COMPLETED_NO));
00050 
00051   tao_info->orb_core ()->request_dispatcher (rd);
00052 
00053   // If the application resolves the root POA, make sure we load the PG POA.
00054   tao_info->orb_core ()->orb_params ()->poa_factory_name (pg_poa_factory_name);
00055   tao_info->orb_core ()->orb_params ()->poa_factory_directive (ACE_TEXT_ALWAYS_CHAR (pg_poa_factory_directive));
00056 }


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 16:24:18 2008 for TAO_PortableGroup by doxygen 1.3.6