PortableInterceptor Namespace Reference


Typedefs

typedef ClientRequestInterceptor * ClientRequestInterceptor_ptr
typedef CORBA::Short ReplyStatus
typedef IORInterceptor * IORInterceptor_ptr
typedef IORInfo * IORInfo_ptr
typedef IORInterceptor * IORInterceptor_ptr
typedef ClientRequestInterceptor * ClientRequestInterceptor_ptr
typedef ServerRequestInterceptor * ServerRequestInterceptor_ptr
typedef ORBInitializer * ORBInitializer_ptr
typedef ORBInitializer * ORBInitializer_ptr
typedef CORBA::ULong SlotId
typedef PolicyFactory * PolicyFactory_ptr
typedef ServerRequestInterceptor * ServerRequestInterceptor_ptr
typedef CORBA::Short ReplyStatus

Functions

void register_orb_initializer (ORBInitializer_ptr init)


Typedef Documentation

typedef ClientRequestInterceptor* PortableInterceptor::ClientRequestInterceptor_ptr

Definition at line 38 of file ClientRequestInterceptor_Adapter.h.

typedef CORBA::Short PortableInterceptor::ReplyStatus

Definition at line 41 of file ClientRequestInterceptor_Adapter.h.

typedef IORInterceptor* PortableInterceptor::IORInterceptor_ptr

Definition at line 37 of file IORInterceptor_Adapter.h.

typedef IORInfo* PortableInterceptor::IORInfo_ptr

Definition at line 39 of file IORInterceptor_Adapter.h.

typedef IORInterceptor* PortableInterceptor::IORInterceptor_ptr

Definition at line 129 of file ORB_Core.h.

typedef ClientRequestInterceptor* PortableInterceptor::ClientRequestInterceptor_ptr

Definition at line 134 of file ORB_Core.h.

typedef ServerRequestInterceptor* PortableInterceptor::ServerRequestInterceptor_ptr

Definition at line 137 of file ORB_Core.h.

typedef ORBInitializer* PortableInterceptor::ORBInitializer_ptr

Definition at line 30 of file ORBInitializer_Registry.h.

typedef ORBInitializer* PortableInterceptor::ORBInitializer_ptr

Definition at line 33 of file ORBInitializer_Registry_Adapter.h.

typedef CORBA::ULong PortableInterceptor::SlotId

Definition at line 36 of file ORBInitializer_Registry_Adapter.h.

typedef PolicyFactory* PortableInterceptor::PolicyFactory_ptr

Definition at line 41 of file PolicyFactory_Registry_Adapter.h.

typedef ServerRequestInterceptor* PortableInterceptor::ServerRequestInterceptor_ptr

Definition at line 38 of file ServerRequestInterceptor_Adapter.h.

typedef CORBA::Short PortableInterceptor::ReplyStatus

Definition at line 41 of file ServerRequestInterceptor_Adapter.h.


Function Documentation

TAO_Export void PortableInterceptor::register_orb_initializer ( ORBInitializer_ptr  init  ) 

Register an ORBInitializer with the global ORBInitializer table.

Definition at line 27 of file ORBInitializer_Registry.cpp.

References ACE_DYNAMIC_SERVICE_DIRECTIVE, ACE_ERROR, ACE_GUARD, ACE_TEXT, ACE_Dynamic_Service< TYPE >::instance(), TAO_Singleton_Manager::instance(), LM_ERROR, ACE_Service_Config::process_directive(), and TAO_SYNCH_RECURSIVE_MUTEX.

00028   {
00029     {
00030       // Using ACE_Static_Object_Lock::instance() precludes
00031       // register_orb_initializer() from being called within a static
00032       // object CTOR.
00033       ACE_MT (ACE_GUARD (TAO_SYNCH_RECURSIVE_MUTEX,
00034                          guard,
00035                          *ACE_Static_Object_Lock::instance ()));
00036 
00037       // Make sure TAO's singleton manager is initialized.
00038       if (TAO_Singleton_Manager::instance ()->init () == -1)
00039         {
00040           ACE_ERROR ((LM_ERROR,
00041                       ACE_TEXT ("(%P|%t) register_orb_initializer: ")
00042                       ACE_TEXT ("Unable to pre-initialize TAO\n")));
00043         }
00044     }
00045 
00046     // If not, look it up.
00047     TAO::ORBInitializer_Registry_Adapter *orbinitializer_registry_ =
00048       ACE_Dynamic_Service<TAO::ORBInitializer_Registry_Adapter>::instance
00049       ("ORBInitializer_Registry", true); // only look in the local repo
00050 
00051 #if !defined (TAO_AS_STATIC_LIBS)
00052     if (orbinitializer_registry_ == 0)
00053       {
00054         ACE_Service_Config::process_directive (
00055           ACE_DYNAMIC_SERVICE_DIRECTIVE("ORBInitializer_Registry",
00056                                         "TAO_PI",
00057                                         "_make_ORBInitializer_Registry",
00058                                         ""));
00059         orbinitializer_registry_ =
00060           ACE_Dynamic_Service<TAO::ORBInitializer_Registry_Adapter>::instance
00061             ("ORBInitializer_Registry");
00062       }
00063 #endif /* !TAO_AS_STATIC_LIBS */
00064 
00065     if (orbinitializer_registry_ != 0)
00066       {
00067         orbinitializer_registry_->register_orb_initializer (init);
00068       }
00069     else
00070       {
00071         ACE_ERROR ((LM_ERROR,
00072                     ACE_TEXT ("TAO (%P|%t) %p\n"),
00073                     ACE_TEXT ("ERROR: ORBInitializer Registry unable to find the ")
00074                     ACE_TEXT ("ORBInitializer Registry instance")));
00075 
00076         throw ::CORBA::INTERNAL ();
00077       }
00078   }


Generated on Tue Feb 2 17:39:58 2010 for TAO by  doxygen 1.4.7