The static (global) resoures of all ORB cores. More...
#include <ORB_Core.h>
Public Member Functions | |
TAO_ORB_Core_Static_Resources (void) | |
Constructor. | |
TAO_ORB_Core_Static_Resources & | operator= (const TAO_ORB_Core_Static_Resources &) |
Static Public Member Functions | |
static TAO_ORB_Core_Static_Resources * | instance (void) |
Return the context-specific singleton instance. | |
Public Attributes | |
ACE_CString | network_priority_protocols_hooks_name_ |
TAO_ORB_Core::Timeout_Hook | connection_timeout_hook_ |
The hook to be set for the ConnectionTimeoutPolicy. | |
ACE_CString | resource_factory_name_ |
ACE_CString | dynamic_adapter_name_ |
ACE_CString | ifr_client_adapter_name_ |
ACE_CString | typecodefactory_adapter_name_ |
ACE_CString | iorinterceptor_adapter_factory_name_ |
ACE_CString | valuetype_adapter_factory_name_ |
TAO_ORB_Core::Timeout_Hook | alt_connection_timeout_hook_ |
An alternative hook to be set for the ConnectionTimeoutPolicy. | |
Static Private Attributes | |
static TAO_ORB_Core_Static_Resources * | initialization_reference_ |
The static (global) resoures of all ORB cores.
This class is used by the ORB_Core to store the resources global to all ORB_Cores. All instance variables that would have been declared "static" in TAO_ORB_Core, should be declared in this class to avoid the "static initialization order fiasco" as described in http://www.parashift.com/c++-faq-lite/ctors.html#faq-10.11. Briefly, this is the problem that occurs if any static initializers in any other code call into set static members of TAO_ORB_Core. Since the order in which these initializers execute is unspecified, uninitialized members can be accessed.
Definition at line 1289 of file ORB_Core.h.
TAO_ORB_Core_Static_Resources::TAO_ORB_Core_Static_Resources | ( | void | ) |
Constructor.
Definition at line 153 of file ORB_Core.cpp.
: network_priority_protocols_hooks_name_ ( "Network_Priority_Protocols_Hooks"), connection_timeout_hook_ (0), resource_factory_name_ ("Resource_Factory"), dynamic_adapter_name_ ("Dynamic_Adapter"), ifr_client_adapter_name_ ("IFR_Client_Adapter"), typecodefactory_adapter_name_ ("TypeCodeFactory_Adapter"), iorinterceptor_adapter_factory_name_ ("IORInterceptor_Adapter_Factory"), valuetype_adapter_factory_name_ ("Valuetype_Adapter_Factory"), alt_connection_timeout_hook_ (0) { }
TAO_ORB_Core_Static_Resources * TAO_ORB_Core_Static_Resources::instance | ( | void | ) | [static] |
Return the context-specific singleton instance.
Definition at line 120 of file ORB_Core.cpp.
{ ACE_Service_Gestalt *current = ACE_Service_Config::current(); TAO_ORB_Core_Static_Resources* tocsr = ACE_Dynamic_Service<TAO_ORB_Core_Static_Resources>::instance (current, "TAO_ORB_Core_Static_Resources", true); if (tocsr == 0) { // This new is never freed on purpose. The data specified by // it needs to be around for the last shared library that references // this class. This could occur in a destructor in a shared library // that is unloaded after this one. One solution to avoid this // harmless memory leak would be to use reference counting. current->process_directive(ace_svc_desc_TAO_ORB_Core_Static_Resources); tocsr = ACE_Dynamic_Service<TAO_ORB_Core_Static_Resources>::instance (current, "TAO_ORB_Core_Static_Resources", true); ACE_Service_Gestalt *global = ACE_Service_Config::global(); if (current != global) { TAO_ORB_Core_Static_Resources* global_tocsr = ACE_Dynamic_Service<TAO_ORB_Core_Static_Resources>::instance (global,"TAO_ORB_Core_Static_Resources"); if (global_tocsr != 0) *tocsr = *global_tocsr; } } return tocsr; }
TAO_ORB_Core_Static_Resources & TAO_ORB_Core_Static_Resources::operator= | ( | const TAO_ORB_Core_Static_Resources & | other | ) |
Definition at line 168 of file ORB_Core.cpp.
{ this->network_priority_protocols_hooks_name_ = other.network_priority_protocols_hooks_name_; this->connection_timeout_hook_ = other.connection_timeout_hook_; this->resource_factory_name_ = other.resource_factory_name_; this->dynamic_adapter_name_ = other.dynamic_adapter_name_; this->ifr_client_adapter_name_ = other.ifr_client_adapter_name_; this->typecodefactory_adapter_name_ = other.typecodefactory_adapter_name_; this->iorinterceptor_adapter_factory_name_ = other.iorinterceptor_adapter_factory_name_; this->valuetype_adapter_factory_name_ = other.valuetype_adapter_factory_name_; this->alt_connection_timeout_hook_ = other.alt_connection_timeout_hook_; return *this; }
An alternative hook to be set for the ConnectionTimeoutPolicy.
Definition at line 1359 of file ORB_Core.h.
The hook to be set for the ConnectionTimeoutPolicy.
Definition at line 1303 of file ORB_Core.h.
Name of the service object for DII request creation that needs to be instantiated. The default value is "Dynamic_Adaper". If TAO_DynamicInterface is linked, dynamic_adapter_name() will be called to set the value to "Concrete_Dynamic_Adapter".
Definition at line 1319 of file ORB_Core.h.
Name of the service object for functions that make calls on the Interface Repository. The default value is "IFR_Client_Adaper". If TAO_IFR_CLient is linked, ifr_client_adapter_name() will be called to set the value to "Concrete_IFR_Client_Adapter".
Definition at line 1327 of file ORB_Core.h.
TAO_ORB_Core_Static_Resources * TAO_ORB_Core_Static_Resources::initialization_reference_ [static, private] |
Mostly unused variable whose sole purpose is to enforce the instantiation of a TAO_ORB_Core_Static_Resources instance at initialization time.
Definition at line 1373 of file ORB_Core.h.
Name of the factory object used to adapt function calls on the PortableInterceptor interfaces IORInfo and IORInterceptor. The default value is "IORInterceptor_Adapter_Factory". If the IORInterceptor library is linked, the corresponding accessor function iorinterceptor_adapter_factory_name() will be called to set the value to "Concrete_IORInterceptor_Adapter_Factory".
Definition at line 1346 of file ORB_Core.h.
Name of the network_priority_protocols_hooks that needs to be instantiated.
Definition at line 1300 of file ORB_Core.h.
Name of the resource factory that needs to be instantiated. The default value is "Resource_Factory". If TAO_Strategies is linked, the set_resource_factory will be called to set the value to be "Advanced_Resource_Factory".
Definition at line 1311 of file ORB_Core.h.
Name of the service object used by the ORB create_*_tc functions. The default value is "TypeCodeFactory_Adapter". If the TypeCodeFactory library is linked, the corresponding accessor function typecodefactory_adapter_name() will be called to set the value to "Concrete_TypeCodeFactory_Adapter".
Definition at line 1336 of file ORB_Core.h.
Name of the factory object used to adapt function calls on the valuetype-related interfaces. The default value is "Valuetype_Adapter_Factory". If the Valuetype library is linked, the corresponding accessor function valuetype_adapter_factory_name() will be called to set the value to "Concrete_Valuetype_Adapter_Factory".
Definition at line 1356 of file ORB_Core.h.