#include <PI_Server_Loader.h>
Public Member Functions | |
TAO_PI_Server_Loader (void) | |
Constructor. | |
virtual | ~TAO_PI_Server_Loader (void) |
Destructor. | |
virtual int | init (int argc, ACE_TCHAR *[]) |
Initialize the PI_Server loader hooks. | |
Private Attributes | |
bool | initialized_ |
Set to true after init is called. |
Definition at line 28 of file PI_Server_Loader.h.
TAO_PI_Server_Loader::TAO_PI_Server_Loader | ( | void | ) |
TAO_PI_Server_Loader::~TAO_PI_Server_Loader | ( | void | ) | [virtual] |
int TAO_PI_Server_Loader::init | ( | int | argc, | |
ACE_TCHAR * | [] | |||
) | [virtual] |
Initialize the PI_Server loader hooks.
Register the Messaging ORBInitializer.
Reimplemented from ACE_Shared_Object.
Definition at line 27 of file PI_Server_Loader.cpp.
{ ACE_TRACE ("TAO_PI_Server_Loader::init"); // Only allow initialization once. if (this->initialized_) return 0; this->initialized_ = true; // Register the ORB initializer. try { /// Register the Messaging ORBInitializer. PortableInterceptor::ORBInitializer_ptr temp_orb_initializer = PortableInterceptor::ORBInitializer::_nil (); ACE_NEW_THROW_EX (temp_orb_initializer, TAO_PortableServer_ORBInitializer, CORBA::NO_MEMORY ( CORBA::SystemException::_tao_minor_code ( TAO::VMCID, ENOMEM), CORBA::COMPLETED_NO)); PortableInterceptor::ORBInitializer_var orb_initializer = temp_orb_initializer; PortableInterceptor::register_orb_initializer (orb_initializer.in ()); } catch (const ::CORBA::Exception& ex) { ex._tao_print_exception ("Caught exception:"); return -1; } return 0; }
bool TAO_PI_Server_Loader::initialized_ [private] |
Set to true after init is called.
Definition at line 42 of file PI_Server_Loader.h.