#include <Naming_Loader.h>
Inheritance diagram for TAO_Naming_Loader:
Public Member Functions | |
TAO_Naming_Loader (void) | |
Constructor. | |
~TAO_Naming_Loader (void) | |
Destructor. | |
virtual int | init (int argc, ACE_TCHAR *argv[]) |
virtual int | fini (void) |
virtual CORBA::Object_ptr | create_object (CORBA::ORB_ptr orb, int argc, ACE_TCHAR *argv[]) throw (CORBA::SystemException) |
Protected Attributes | |
TAO_Naming_Server | naming_server_ |
Instance of the TAO_Naming_Server. | |
Private Member Functions | |
TAO_Naming_Loader (const TAO_Naming_Loader &) | |
TAO_Naming_Loader & | operator= (const TAO_Naming_Loader &) |
|
Constructor.
Definition at line 25 of file Naming_Loader.cpp.
00026 {
00027 // Constructor
00028 }
|
|
Destructor.
Definition at line 30 of file Naming_Loader.cpp.
00031 {
00032 // Destructor
00033 }
|
|
|
|
This function call initializes the Naming Service given a reference to the ORB and the command line parameters. Implements TAO_Object_Loader. Definition at line 77 of file Naming_Loader.cpp. References CORBA::Object::_nil(). Referenced by init().
00082 { 00083 int result; 00084 00085 // Initializes the Naming Service. Returns -1 00086 // on an error. 00087 result = this->naming_server_.init_with_orb (argc, 00088 argv, 00089 orb); 00090 if (result == -1) 00091 return CORBA::Object::_nil (); 00092 00093 return 0; 00094 } |
|
Called by the Service Configurator framework to remove the Event Service. Defined in <ace/Service_Config.h> Reimplemented from ACE_Shared_Object. Definition at line 70 of file Naming_Loader.cpp. References TAO_Naming_Server::fini(), and naming_server_.
00071 { 00072 // Remove the Naming Service. 00073 return this->naming_server_.fini (); 00074 } |
|
Called by the Service Configurator framework to initialize the Event Service. Defined in <ace/Service_Config.h> Reimplemented from ACE_Shared_Object. Definition at line 36 of file Naming_Loader.cpp. References ACE_CATCHANY, ACE_DECLARE_NEW_CORBA_ENV, ACE_ENDTRY, ACE_ENV_ARG_PARAMETER, ACE_TRY, ACE_TRY_CHECK, create_object(), ACE_Argv_Type_Converter::get_argc(), ACE_Argv_Type_Converter::get_ASCII_argv(), ACE_Argv_Type_Converter::get_TCHAR_argv(), and CORBA::ORB_init().
00037 { 00038 ACE_DECLARE_NEW_CORBA_ENV; 00039 ACE_TRY 00040 { 00041 // Copy command line parameter. 00042 ACE_Argv_Type_Converter command_line(argc, argv); 00043 00044 // Initialize the ORB 00045 CORBA::ORB_var orb = 00046 CORBA::ORB_init (command_line.get_argc(), 00047 command_line.get_ASCII_argv(), 00048 0 00049 ACE_ENV_ARG_PARAMETER); 00050 ACE_TRY_CHECK; 00051 00052 // This function call initializes the Naming Service 00053 CORBA::Object_var object = 00054 this->create_object (orb.in (), 00055 command_line.get_argc(), 00056 command_line.get_TCHAR_argv () 00057 ACE_ENV_ARG_PARAMETER); 00058 ACE_TRY_CHECK; 00059 } 00060 ACE_CATCHANY 00061 { 00062 // @@ Should we log this??? 00063 return -1; 00064 } 00065 ACE_ENDTRY; 00066 return 0; 00067 } |
|
|
|
Instance of the TAO_Naming_Server.
Definition at line 60 of file Naming_Loader.h. Referenced by fini(). |