blob: 42288ac9f091164f0077c27d29a90b13865c7e7f (
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
|
#include "orbsvcs/Notify/Service.h"
#include "ace/Dynamic_Service.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Notify_Service::~TAO_Notify_Service (void)
{
}
TAO_Notify_Service*
TAO_Notify_Service::load_default (void)
{
static const char* services[] = { TAO_MC_NOTIFICATION_SERVICE_NAME,
TAO_NOTIFICATION_SERVICE_NAME,
TAO_COS_NOTIFICATION_SERVICE_NAME,
0
};
TAO_Notify_Service* notify_service = 0;
for(size_t i = 0; services[i] != 0; i++)
{
notify_service =
ACE_Dynamic_Service<TAO_Notify_Service>::instance (services[i]);
if (notify_service != 0)
break;
}
return notify_service;
}
TAO_END_VERSIONED_NAMESPACE_DECL
|