blob: 637de028cbd6a7331eae5023943a4d7186ebc2a1 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// $Id$
#ifndef COMPASS_SERVER_ACTIVATOR_H
#define COMPASS_SERVER_ACTIVATOR_H
#include "ace/pre.h"
#include "ACEXML/compass/Compass_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
#pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Singleton.h"
#include "ace/Synch.h"
#include "ace/Unbounded_Set.h"
#include "ACEXML/compass/CompassTypes.h"
namespace Deployment
{
class ComponentServer; // Forward decl.
typedef ACE_Unbounded_Set<ComponentServer*> ComponentServers;
class Compass_Export ServerActivator
{
public:
friend class ACE_Singleton <ServerActivator, ACE_SYNCH_MUTEX>;
ComponentServer* create_component_server (ConfigValues* config = 0)
ACE_THROW_SPEC ((CreateFailure, InvalidConfiguration));
void remove_component_server (ComponentServer* server)
ACE_THROW_SPEC ((RemoveFailure));
ComponentServers* get_component_servers ();
protected:
ServerActivator();
~ServerActivator();
ServerActivator (const ServerActivator&);
ServerActivator& operator= (const ServerActivator&);
private:
ComponentServers* comp_servers_;
};
typedef ACE_Singleton <ServerActivator, ACE_SYNCH_MUTEX> SERVER_ACTIVATOR;
}
#if defined (__ACE_INLINE__)
#include "ServerActivator.inl"
#endif /* __ACE_INLINE__ */
#include "ace/post.h"
#endif /* COMPASS_SERVER_ACTIVATOR_H */
|