Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / tao / Default_Stub_Factory.cpp
blobee2fa4090c83f3dba48bb6bba1cc2f444bf34a80
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_Default_Stub_Factory::~TAO_Default_Stub_Factory (void)
15 TAO_Stub *
16 TAO_Default_Stub_Factory::create_stub (const char *repository_id,
17 const TAO_MProfile &profiles,
18 TAO_ORB_Core *orb_core)
20 TAO_Stub *retval = 0;
22 ACE_NEW_THROW_EX (retval,
23 TAO_Stub (repository_id, profiles, orb_core),
24 CORBA::NO_MEMORY (0,
25 CORBA::COMPLETED_MAYBE));
27 return retval;
30 // ****************************************************************
32 ACE_STATIC_SVC_DEFINE (
33 TAO_Default_Stub_Factory,
34 ACE_TEXT ("Default_Stub_Factory"),
35 ACE_SVC_OBJ_T,
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