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
11 TAO_Default_Stub_Factory::~TAO_Default_Stub_Factory (void)
16 TAO_Default_Stub_Factory::create_stub (const char *repository_id
,
17 const TAO_MProfile
&profiles
,
18 TAO_ORB_Core
*orb_core
)
22 ACE_NEW_THROW_EX (retval
,
23 TAO_Stub (repository_id
, profiles
, orb_core
),
25 CORBA::COMPLETED_MAYBE
));
30 // ****************************************************************
32 ACE_STATIC_SVC_DEFINE (
33 TAO_Default_Stub_Factory
,
34 ACE_TEXT ("Default_Stub_Factory"),
36 &ACE_SVC_NAME (TAO_Default_Stub_Factory
),
37 ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ
,
40 ACE_FACTORY_DEFINE (TAO
, TAO_Default_Stub_Factory
)
42 TAO_END_VERSIONED_NAMESPACE_DECL