Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Services_Activate.h
blobb4fc47a288dcb8060609302c617e09a4d9dc8d74
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Services_Activate.h
7 * This is a generic interface that would be used to activate
8 * the services that are loaded through the svc.conf file
10 * @author Bala Natarajan <bala@cs.wustl.edu>
12 //=============================================================================
14 #ifndef TAO_SERVICES_ACTIVATE_H
15 #define TAO_SERVICES_ACTIVATE_H
17 #include /**/ "ace/pre.h"
18 #include "ace/Service_Object.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # pragma once
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "tao/orbconf.h"
25 #include /**/ "tao/TAO_Export.h"
27 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
29 class TAO_ORB_Core;
30 class TAO_Service_Callbacks;
32 /**
33 * @class TAO_Services_Activate
35 * @brief A class to dynamically load callback implementations in to an
36 * ORB.
38 * Many services and components of the ORB whose default behaviour
39 * needs to be changed can use this class to activate the Callback
40 * hooks. These hooks can then be called by the ORB at the right
41 * points.
42 * @@ TODO
44 class TAO_Export TAO_Services_Activate : public ACE_Service_Object
46 public:
47 /// The destructor
48 virtual ~TAO_Services_Activate ();
50 /**
51 * Create and activate the service callbacks into the orb.
52 * This method cannot throw any exception, but it can return a nil
53 * object to indicate an error condition.
55 virtual TAO_Service_Callbacks* activate_services (TAO_ORB_Core *orb) = 0;
58 TAO_END_VERSIONED_NAMESPACE_DECL
60 #include /**/ "ace/post.h"
62 #endif /*TAO_SERVICES_ACTIVATE_H*/