Static Public Member Functions

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

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.

{
  CosNotifyChannelAdmin::EventChannelFactory_var notify_factory;

  TAO_Notify_Service* notify_service = ACE_Dynamic_Service<TAO_Notify_Service>::instance (TAO_COS_NOTIFICATION_SERVICE_NAME);

  if (notify_service == 0)
  {
    ACE_DEBUG ((LM_DEBUG, "Service not found! check conf. file\n"));
    return notify_factory._retn ();
  }

  TAO_Root_POA *poa = dynamic_cast <TAO_Root_POA*> (default_POA);

  if (poa == 0)
    return notify_factory._retn ();

  CORBA::ORB_ptr orb = poa->orb_core ().orb () ;

  notify_service->init_service (orb);

  notify_factory = notify_service->create (default_POA, factory_name);

  return notify_factory._retn ();
}


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines