summaryrefslogtreecommitdiff
path: root/TAO/tao/Services_Activate.h
blob: da60f55bc4dbd734bae40d5ee7e48975b89bad8a (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
58
59
60
61
// $Id$
//
// ============================================================================
//
// = LIBRARY
//    TAO
//
// = FILENAME
//    Service_Callbacks.h
//
// = DESCRIPTION
//   This is a generic interface that would be used to activate
//   the services that are loaded through the svc.conf file
//
// = AUTHOR
//   Bala Natarajan <bala@cs.wustl.edu>
// ============================================================================
#ifndef TAO_SERVICES_ACTIVATE_H
#define TAO_SERVICES_ACTIVATE_H
#include "ace/pre.h"

#include "tao/corbafwd.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "ace/Service_Object.h"


class TAO_ORB_Core;
class TAO_Service_Callbacks;

class TAO_Export TAO_Services_Activate : public ACE_Service_Object
{
  // = TITLE
  //   A class to dynamically load callback implementations in to an
  //   ORB.
  //
  // = DESCRIPTION
  //   Many services and components of the ORB whose default behaviour
  //   needs to be changed can use this class to activate the Callback
  //   hooks. These hooks can then be called by the ORB at the right
  //   points.
  //   @@ TODO
  //
public:
  virtual ~TAO_Services_Activate (void);
  // The destructor

  virtual TAO_Service_Callbacks* activate_services (TAO_ORB_Core *orb)
    ACE_THROW_SPEC (()) = 0;
  // Create and activate the service callbacks into the orb.
  // This method cannot throw any exception, but it can return a nil
  // object to indicate an error condition.

};


#include "ace/post.h"
#endif /*TAO_SERVICES_ACTIVATE_H*/