00001
00002
00003 #include "tao/Default_Stub_Factory.h"
00004 #include "tao/Stub.h"
00005 #include "tao/ORB_Constants.h"
00006 #include "tao/SystemException.h"
00007 #include "ace/CORBA_macros.h"
00008 #include "ace/Log_Msg.h"
00009
00010 ACE_RCSID (tao,
00011 TAO_Default_Stub_Factory,
00012 "$Id: Default_Stub_Factory.cpp 76995 2007-02-11 12:51:42Z johnnyw $")
00013
00014 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00015
00016 TAO_Default_Stub_Factory::~TAO_Default_Stub_Factory (void)
00017 {
00018 }
00019
00020 TAO_Stub *
00021 TAO_Default_Stub_Factory::create_stub (const char *repository_id,
00022 const TAO_MProfile &profiles,
00023 TAO_ORB_Core *orb_core)
00024 {
00025 TAO_Stub *retval = 0;
00026
00027 ACE_NEW_THROW_EX (retval,
00028 TAO_Stub (repository_id, profiles, orb_core),
00029 CORBA::NO_MEMORY (0,
00030 CORBA::COMPLETED_MAYBE));
00031
00032 return retval;
00033 }
00034
00035 TAO_END_VERSIONED_NAMESPACE_DECL
00036
00037
00038
00039 ACE_STATIC_SVC_DEFINE (
00040 TAO_Default_Stub_Factory,
00041 ACE_TEXT ("Default_Stub_Factory"),
00042 ACE_SVC_OBJ_T,
00043 &ACE_SVC_NAME (TAO_Default_Stub_Factory),
00044 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00045 0
00046 )
00047 ACE_FACTORY_DEFINE (TAO, TAO_Default_Stub_Factory)