#include <PortableGroup_Loader.h>
Inheritance diagram for TAO_PortableGroup_Loader:
Public Member Functions | |
TAO_PortableGroup_Loader (void) | |
Constructor. | |
virtual int | init (int argc, char *[]) |
Initialize the PortableGroup loader hooks. | |
Static Public Member Functions | |
static int | Initializer (void) |
Used to force the initialization of the ORB code. |
Definition at line 42 of file PortableGroup_Loader.h.
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_PortableGroup_Loader::TAO_PortableGroup_Loader | ( | void | ) |
int TAO_PortableGroup_Loader::init | ( | int | argc, | |
char * | [] | |||
) | [virtual] |
Initialize the PortableGroup loader hooks.
Register the Portablegroup ORBInitializer.
Reimplemented from ACE_Shared_Object.
Definition at line 22 of file PortableGroup_Loader.cpp.
References CORBA::SystemException::_tao_minor_code(), CORBA::Exception::_tao_print_exception(), ACE_NEW_THROW_EX, ACE_TRACE, CORBA::COMPLETED_NO, PortableInterceptor::register_orb_initializer(), and TAO::VMCID.
Referenced by Initializer().
00024 { 00025 ACE_TRACE ("TAO_PortableGroup_Loader::init"); 00026 // Register the ORB initializer. 00027 try 00028 { 00029 PortableInterceptor::ORBInitializer_ptr temp_orb_initializer = 00030 PortableInterceptor::ORBInitializer::_nil (); 00031 PortableInterceptor::ORBInitializer_var orb_initializer; 00032 00033 /// Register the Portablegroup ORBInitializer. 00034 ACE_NEW_THROW_EX (temp_orb_initializer, 00035 TAO_PortableGroup_ORBInitializer (), 00036 CORBA::NO_MEMORY ( 00037 CORBA::SystemException::_tao_minor_code ( 00038 TAO::VMCID, 00039 ENOMEM), 00040 CORBA::COMPLETED_NO)); 00041 orb_initializer = temp_orb_initializer; 00042 00043 PortableInterceptor::register_orb_initializer (orb_initializer.in ()); 00044 } 00045 catch (const CORBA::Exception& ex) 00046 { 00047 ex._tao_print_exception ( 00048 "Unexpected exception caught while initializing the PortableGroup:"); 00049 return 1; 00050 } 00051 00052 return 0; 00053 }
int TAO_PortableGroup_Loader::Initializer | ( | void | ) | [static] |
Used to force the initialization of the ORB code.
Definition at line 56 of file PortableGroup_Loader.cpp.
References init(), ACE_Dynamic_Service< TYPE >::instance(), and ACE_Service_Config::process_directive().
00057 { 00058 ACE_Service_Config::process_directive (ace_svc_desc_TAO_PortableGroup_Loader); 00059 TAO_PortableGroup_Loader *tmp = 00060 ACE_Dynamic_Service<TAO_PortableGroup_Loader>::instance ( 00061 "PortableGroup_Loader"); 00062 00063 if (tmp != 0) 00064 { 00065 return tmp->init (0, 0); 00066 } 00067 00068 return -1; 00069 }