2 #include "tao/Default_Stub_Factory.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
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
),
21 CORBA::COMPLETED_MAYBE
));
26 // ****************************************************************
28 ACE_STATIC_SVC_DEFINE (
29 TAO_Default_Stub_Factory
,
30 ACE_TEXT ("Default_Stub_Factory"),
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