TAO_Notify_EventChannelFactory_i Class Reference

Class maintained for Backward compatibility. More...

#include <Notify_EventChannelFactory_i.h>

List of all members.

Static Public Member Functions

static CosNotifyChannelAdmin::EventChannelFactory_ptr create (PortableServer::POA_ptr default_POA, const char *factory_name="EventChannelFactory")


Detailed Description

Class maintained for Backward compatibility.

Definition at line 33 of file Notify_EventChannelFactory_i.h.


Member Function Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL CosNotifyChannelAdmin::EventChannelFactory_ptr TAO_Notify_EventChannelFactory_i::create ( PortableServer::POA_ptr  default_POA,
const char *  factory_name = "EventChannelFactory" 
) [static]

Create a factory servant and activates it with the default POA. Also creates a resource factory and assigns it this default_POA.

Definition at line 13 of file Notify_EventChannelFactory_i.cpp.

References ACE_DEBUG, TAO_Notify_Service::create(), TAO_Notify_Service::init_service(), ACE_Dynamic_Service< TYPE >::instance(), LM_DEBUG, TAO_ORB_Core::orb(), TAO_Root_POA::orb_core(), and TAO_COS_NOTIFICATION_SERVICE_NAME.

00015 {
00016   CosNotifyChannelAdmin::EventChannelFactory_var notify_factory;
00017 
00018   TAO_Notify_Service* notify_service = ACE_Dynamic_Service<TAO_Notify_Service>::instance (TAO_COS_NOTIFICATION_SERVICE_NAME);
00019 
00020   if (notify_service == 0)
00021   {
00022     ACE_DEBUG ((LM_DEBUG, "Service not found! check conf. file\n"));
00023     return notify_factory._retn ();
00024   }
00025 
00026   TAO_Root_POA *poa = dynamic_cast <TAO_Root_POA*> (default_POA);
00027 
00028   if (poa == 0)
00029     return notify_factory._retn ();
00030 
00031   CORBA::ORB_ptr orb = poa->orb_core ().orb () ;
00032 
00033   notify_service->init_service (orb);
00034 
00035   notify_factory = notify_service->create (default_POA, factory_name);
00036 
00037   return notify_factory._retn ();
00038 }


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