blob: 817c22d2f5f76c1580e6c8845bfdeeb2ab0789c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// $Id$
#include "Notify_EventChannelFactory_i.h"
#include "Service.h"
#include "ace/Dynamic_Service.h"
CosNotifyChannelAdmin::EventChannelFactory_ptr
TAO_Notify_EventChannelFactory_i::create (PortableServer::POA_ptr default_POA ACE_ENV_ARG_DECL)
{
CosNotifyChannelAdmin::EventChannelFactory_var notify_factory;
TAO_NS_Service* notify_service = ACE_Dynamic_Service<TAO_NS_Service>::instance (TAO_NS_COS_NOTIFICATION_SERVICE_NAME);
if (notify_service == 0)
{
ACE_DEBUG ((LM_DEBUG, "Service not found! check conf. file\n"));
return notify_factory._retn ();
}
notify_factory = notify_service->create (default_POA ACE_ENV_ARG_PARAMETER);
ACE_CHECK_RETURN (notify_factory._retn ());
return notify_factory._retn ();
}
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class ACE_Dynamic_Service<TAO_NS_Service>;
#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
#pragma instantiate ACE_Dynamic_Service<TAO_NS_Service>
#endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */
|