TAO_Notify_Service Class Reference

Abstract ACE_Service_Object interface that is a factory for creating a Notify EventChannelFactory. More...

#include <Service.h>

Inheritance diagram for TAO_Notify_Service:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_Service:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~TAO_Notify_Service (void)
 Destructor.
virtual int init (int argc, ACE_TCHAR *argv[])=0
 Init the service from configurator.
virtual void init_service (CORBA::ORB_ptr orb)=0
 Init the service.
virtual void init_service2 (CORBA::ORB_ptr orb, CORBA::ORB_ptr dispatching_orb)=0
 Init the service with separate dispatching orb.
virtual void finalize_service (CosNotifyChannelAdmin::EventChannelFactory_ptr factory)=0
virtual CosNotifyChannelAdmin::EventChannelFactory_ptr create (PortableServer::POA_ptr default_POA, const char *factory_name="EventChannelFactory")=0
 Create the Channel Factory.

Static Public Member Functions

static TAO_Notify_Serviceload_default (void)

Detailed Description

Abstract ACE_Service_Object interface that is a factory for creating a Notify EventChannelFactory.

Definition at line 54 of file Service.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_Service::~TAO_Notify_Service ( void   )  [virtual]

Destructor.

Definition at line 12 of file Service.cpp.

00013 {
00014 }


Member Function Documentation

virtual CosNotifyChannelAdmin::EventChannelFactory_ptr TAO_Notify_Service::create ( PortableServer::POA_ptr  default_POA,
const char *  factory_name = "EventChannelFactory" 
) [pure virtual]

Create the Channel Factory.

Implemented in TAO_CosNotify_Service.

Referenced by TAO_Notify_EventChannelFactory_i::create().

virtual void TAO_Notify_Service::finalize_service ( CosNotifyChannelAdmin::EventChannelFactory_ptr  factory  )  [pure virtual]

Finalize the service. This hook allows the service to perform actions when the user wants it to shut down.

Implemented in TAO_CosNotify_Service.

virtual int TAO_Notify_Service::init ( int  argc,
ACE_TCHAR argv[] 
) [pure virtual]

Init the service from configurator.

Reimplemented from ACE_Shared_Object.

Implemented in TAO_CosNotify_Service.

virtual void TAO_Notify_Service::init_service ( CORBA::ORB_ptr  orb  )  [pure virtual]

Init the service.

Implemented in TAO_CosNotify_Service, and TAO_RT_Notify_Service.

Referenced by TAO_Notify_EventChannelFactory_i::create().

virtual void TAO_Notify_Service::init_service2 ( CORBA::ORB_ptr  orb,
CORBA::ORB_ptr  dispatching_orb 
) [pure virtual]

Init the service with separate dispatching orb.

Implemented in TAO_CosNotify_Service.

TAO_Notify_Service * TAO_Notify_Service::load_default ( void   )  [static]

Load an implementation of the TAO_Notify_Service based on which implementations are loaded.

Definition at line 17 of file Service.cpp.

References TAO_COS_NOTIFICATION_SERVICE_NAME, TAO_MC_NOTIFICATION_SERVICE_NAME, and TAO_NOTIFICATION_SERVICE_NAME.

00018 {
00019   static const char* services[] = { TAO_MC_NOTIFICATION_SERVICE_NAME,
00020                                     TAO_NOTIFICATION_SERVICE_NAME,
00021                                     TAO_COS_NOTIFICATION_SERVICE_NAME,
00022                                     0
00023                                   };
00024 
00025   TAO_Notify_Service* notify_service = 0;
00026   for(size_t i = 0; services[i] != 0; i++)
00027     {
00028       notify_service =
00029         ACE_Dynamic_Service<TAO_Notify_Service>::instance (services[i]);
00030       if (notify_service != 0)
00031         break;
00032     }
00033   return notify_service;
00034 }


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:46:31 2010 for TAO_CosNotification by  doxygen 1.4.7