Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tao / Default_Stub_Factory.cpp
blob6facfeae36115a3da21f1c84e0a613bd2ff53bb0
1 // -*- C++ -*-
2 #include "tao/Default_Stub_Factory.h"
3 #include "tao/Stub.h"
4 #include "tao/ORB_Constants.h"
5 #include "tao/SystemException.h"
6 #include "ace/CORBA_macros.h"
7 #include "ace/Log_Msg.h"
9 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
11 TAO_Stub *
12 TAO_Default_Stub_Factory::create_stub (const char *repository_id,
13 const TAO_MProfile &profiles,
14 TAO_ORB_Core *orb_core)
16 TAO_Stub *retval = nullptr;
18 ACE_NEW_THROW_EX (retval,
19 TAO_Stub (repository_id, profiles, orb_core),
20 CORBA::NO_MEMORY (0,
21 CORBA::COMPLETED_MAYBE));
23 return retval;
26 // ****************************************************************
28 ACE_STATIC_SVC_DEFINE (
29 TAO_Default_Stub_Factory,
30 ACE_TEXT ("Default_Stub_Factory"),
31 ACE_SVC_OBJ_T,
32 &ACE_SVC_NAME (TAO_Default_Stub_Factory),
33 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
36 ACE_FACTORY_DEFINE (TAO, TAO_Default_Stub_Factory)
38 TAO_END_VERSIONED_NAMESPACE_DECL