#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 | |
int | Initializer (void) |
Used to force the initialization of the ORB code. |
|
Constructor.
Definition at line 17 of file PortableGroup_Loader.cpp.
00018 { 00019 } |
|
Initialize the PortableGroup loader hooks. Register the Portablegroup ORBInitializer. Definition at line 22 of file PortableGroup_Loader.cpp. References ACE_ANY_EXCEPTION, ACE_CATCHANY, ACE_ENDTRY, ACE_ENV_ARG_PARAMETER, ACE_NEW_THROW_EX, ACE_PRINT_EXCEPTION, ACE_TRACE, ACE_TRY_CHECK, ACE_TRY_NEW_ENV, and PortableInterceptor::register_orb_initializer(). Referenced by Initializer().
00024 { 00025 ACE_TRACE ("TAO_PortableGroup_Loader::init"); 00026 // Register the ORB initializer. 00027 ACE_TRY_NEW_ENV 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 ACE_TRY_CHECK; 00042 orb_initializer = temp_orb_initializer; 00043 00044 PortableInterceptor::register_orb_initializer (orb_initializer.in () 00045 ACE_ENV_ARG_PARAMETER); 00046 ACE_TRY_CHECK; 00047 } 00048 ACE_CATCHANY 00049 { 00050 ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, 00051 "Unexpected exception caught while initializing the PortableGroup:"); 00052 return 1; 00053 } 00054 ACE_ENDTRY; 00055 00056 return 0; 00057 } |
|
Used to force the initialization of the ORB code.
Definition at line 60 of file PortableGroup_Loader.cpp. References init(), ACE_Dynamic_Service< TYPE >::instance(), and ACE_Service_Config::process_directive().
00061 { 00062 ACE_Service_Config::process_directive (ace_svc_desc_TAO_PortableGroup_Loader); 00063 TAO_PortableGroup_Loader *tmp = 00064 ACE_Dynamic_Service<TAO_PortableGroup_Loader>::instance ( 00065 "PortableGroup_Loader"); 00066 00067 if (tmp != 0) 00068 { 00069 return tmp->init (0, 0); 00070 } 00071 00072 return -1; 00073 } |