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

CosNotifyChannelAdmin::EventChannelFactory_ptr create (PortableServer::POA_ptr default_POA ACE_ENV_ARG_DECL)


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  ACE_ENV_ARG_DECL  )  [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_CHECK_RETURN, ACE_DEBUG, ACE_ENV_ARG_PARAMETER, 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.

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


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:32:00 2006 for TAO_CosNotification by doxygen 1.3.6