00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file RT_Stub_Factory.h 00006 * 00007 * $Id: RT_Stub_Factory.h 84281 2009-01-30 15:01:17Z wotte $ 00008 * 00009 * Defines the a factory interface for creating Stubs. 00010 * This class creates the default stub, that is used in 00011 * plain CORBA. 00012 * 00013 * @author Angelo Corsaro <corsaro@cs.wustl.edu> 00014 * @author Frank Hunleth <fhunleth@cs.wustl.edu> 00015 */ 00016 //============================================================================= 00017 00018 #ifndef TAO_RT_STUB_FACTORY_H_ 00019 #define TAO_RT_STUB_FACTORY_H_ 00020 00021 #include /**/ "ace/pre.h" 00022 00023 #include "tao/orbconf.h" 00024 00025 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 00026 00027 #include "tao/RTCORBA/rtcorba_export.h" 00028 00029 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00030 # pragma once 00031 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00032 00033 #include "tao/Stub_Factory.h" 00034 00035 #include "ace/Service_Config.h" 00036 00037 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00038 00039 /** 00040 * @class TAO_RT_Stub_Factory 00041 * 00042 * This class is a factory whose product is the TAO_RT_Stub used by 00043 * TAO. This factory, or one of its subclasses is dynamically 00044 * plugged into the ORB_Core, and is used by the ORB_Core to create 00045 * Stub Objects. 00046 */ 00047 class TAO_RTCORBA_Export TAO_RT_Stub_Factory : public TAO_Stub_Factory 00048 { 00049 public: 00050 // -- Ctor/Dtor -- 00051 virtual ~TAO_RT_Stub_Factory (void); 00052 00053 /// Creates a Stub Object. 00054 virtual TAO_Stub *create_stub (const char *repository_id, 00055 const TAO_MProfile &profiles, 00056 TAO_ORB_Core *orb_core); 00057 }; 00058 00059 00060 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_RTCORBA, TAO_RT_Stub_Factory) 00061 ACE_FACTORY_DECLARE (TAO_RTCORBA, TAO_RT_Stub_Factory) 00062 00063 TAO_END_VERSIONED_NAMESPACE_DECL 00064 00065 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */ 00066 00067 #include /**/ "ace/post.h" 00068 #endif /* TAO_RT_STUB_FACTORY_H_ */