3 // ================================================================
5 * @file Object_Loader.h
7 * @author Carlos O'Ryan (coryan@cs.wustl.edu)
9 // ================================================================
11 #ifndef TAO_OBJECT_LOADER_H
12 #define TAO_OBJECT_LOADER_H
14 #include /**/ "ace/pre.h"
15 #include "ace/Service_Object.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/orbconf.h"
22 #include "tao/TAO_Export.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
29 typedef Object
*Object_ptr
;
36 * @class TAO_Object_Loader
38 * @brief A class to dynamically load object implementations into an
41 * Many services and components of the ORB can be dynamically
42 * loaded, often these components are returned to the application via
43 * an object reference (CORBA::Object_ptr). This class is used to
44 * dynamically load such components, and encapsulate the creation of
45 * the object reference.
47 class TAO_Export TAO_Object_Loader
: public ACE_Service_Object
51 virtual ~TAO_Object_Loader ();
54 * Create and activate a new object into the orb.
55 * This method cannot throw any exception, but it can return a nil
56 * object to indicate an error condition.
58 virtual CORBA::Object_ptr
create_object (CORBA::ORB_ptr orb
,
60 ACE_TCHAR
* argv
[]) = 0;
63 TAO_END_VERSIONED_NAMESPACE_DECL
65 #include /**/ "ace/post.h"
67 #endif /* TAO_OBJECT_LOADER_H */