blob: 69b1a7559bc64254b8c62ba3c93e56b66ae7898f (
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
62
63
64
65
66
67
68
69
70
71
|
// -*- C++ -*-
// ================================================================
/**
* @file Object_Loader.h
*
* $Id$
*
* @author Carlos O'Ryan (coryan@cs.wustl.edu)
*/
// ================================================================
#ifndef TAO_OBJECT_LOADER_H
#define TAO_OBJECT_LOADER_H
#include /**/ "ace/pre.h"
#include "ace/Service_Object.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/SystemException.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
namespace CORBA
{
class Object;
typedef Object *Object_ptr;
class ORB;
typedef ORB *ORB_ptr;
}
/**
* @class TAO_Object_Loader
*
* @brief A class to dynamically load object implementations into an
* ORB.
*
* Many services and components of the ORB can be dynamically
* loaded, often these components are returned to the application via
* an object reference (CORBA::Object_ptr). This class is used to
* dynamically load such components, and encapsulate the creation of
* the object reference.
*
*/
class TAO_Export TAO_Object_Loader : public ACE_Service_Object
{
public:
/// The destructor
virtual ~TAO_Object_Loader (void);
/**
* Create and activate a new object into the orb.
* This method cannot throw any exception, but it can return a nil
* object to indicate an error condition.
*/
virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb,
int argc,
ACE_TCHAR* argv []
ACE_ENV_ARG_DECL_NOT_USED)
ACE_THROW_SPEC ((CORBA::SystemException)) = 0;
};
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_OBJECT_LOADER_H */
|