3 //=============================================================================
7 * Defines the a factory interface for creating Stubs.
8 * This class creates the default stub, that is used in
11 * @author Angelo Corsaro <corsaro@cs.wustl.edu>
13 //=============================================================================
15 #ifndef TAO_STUB_FACTORY_H_
16 #define TAO_STUB_FACTORY_H_
18 #include /**/ "ace/pre.h"
20 #include /**/ "tao/TAO_Export.h"
22 #if !defined (ACE_LACKS_PRAGMA_ONCE)
24 #endif /* ACE_LACKS_PRAGMA_ONCE */
26 #include /**/ "tao/Versioned_Namespace.h"
28 #include "ace/Service_Object.h"
30 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
38 * @class TAO_Stub_Factory
40 * This class is a factory whose product is the plain TAO_Stub used by
41 * TAO. Its subclasses build Stub object that are specialization of
42 * the TAO_Stub. As an example TAO_RT_Stub_Factory creates
43 * RT_TAO_Stub. This factory, or one of its subclasses is dynamically
44 * plugged into the ORB_Core, and is used by the ORB_Core to create
47 class TAO_Export TAO_Stub_Factory
: public ACE_Service_Object
51 virtual ~TAO_Stub_Factory ();
53 /// Creates a Stub Object.
54 virtual TAO_Stub
*create_stub (const char *repository_id
,
55 const TAO_MProfile
&profiles
,
56 TAO_ORB_Core
*orb_core
) = 0;
59 TAO_END_VERSIONED_NAMESPACE_DECL
61 #include /**/ "ace/post.h"
62 #endif /* TAO_STUB_FACTORY_H_ */