diff options
Diffstat (limited to 'ACE/TAO/tao/RTCORBA/RT_Stub_Factory.cpp')
-rw-r--r-- | ACE/TAO/tao/RTCORBA/RT_Stub_Factory.cpp | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/ACE/TAO/tao/RTCORBA/RT_Stub_Factory.cpp b/ACE/TAO/tao/RTCORBA/RT_Stub_Factory.cpp new file mode 100644 index 00000000000..9cd059f682d --- /dev/null +++ b/ACE/TAO/tao/RTCORBA/RT_Stub_Factory.cpp @@ -0,0 +1,53 @@ +// $Id$ +#include "tao/RTCORBA/RT_Stub_Factory.h" + +#if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 + +#include "tao/RTCORBA/RT_Stub.h" + +#include "tao/ORB_Constants.h" +#include "tao/SystemException.h" + +#include "ace/Log_Msg.h" + + +ACE_RCSID (RTCORBA, + RT_TAO_Stub_Factory, + "$Id$") + + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +TAO_RT_Stub_Factory::~TAO_RT_Stub_Factory (void) +{ +} + +TAO_Stub * +TAO_RT_Stub_Factory::create_stub (const char *repository_id, + const TAO_MProfile &profiles, + TAO_ORB_Core *orb_core) +{ + TAO_Stub *retval = 0; + + ACE_NEW_THROW_EX (retval, + TAO_RT_Stub (repository_id, profiles, orb_core), + CORBA::NO_MEMORY (TAO::VMCID, + CORBA::COMPLETED_MAYBE)); + + return retval; +} + + +// **************************************************************** + +ACE_STATIC_SVC_DEFINE (TAO_RT_Stub_Factory, + ACE_TEXT ("RT_Stub_Factory"), + ACE_SVC_OBJ_T, + &ACE_SVC_NAME (TAO_RT_Stub_Factory), + ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ, + 0) +ACE_FACTORY_DEFINE (TAO_RTCORBA, TAO_RT_Stub_Factory) + +TAO_END_VERSIONED_NAMESPACE_DECL + +#endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */ |