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
00008 #include "ace/Log_Msg.h"
00009
00010
00011 ACE_RCSID (tao,
00012 TAO_Default_Stub_Factory,
00013 "Default_Stub_Factory.cpp,v 1.8 2006/03/10 07:19:05 jtc Exp")
00014
00015 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00016
00017 TAO_Default_Stub_Factory::~TAO_Default_Stub_Factory (void)
00018 {
00019 }
00020
00021 TAO_Stub *
00022 TAO_Default_Stub_Factory::create_stub (const char *repository_id,
00023 const TAO_MProfile &profiles,
00024 TAO_ORB_Core *orb_core
00025 ACE_ENV_ARG_DECL)
00026 {
00027 TAO_Stub *retval = 0;
00028
00029 ACE_NEW_THROW_EX (retval,
00030 TAO_Stub (repository_id, profiles, orb_core),
00031 CORBA::NO_MEMORY (0,
00032 CORBA::COMPLETED_MAYBE));
00033 ACE_CHECK_RETURN (retval);
00034
00035 return retval;
00036 }
00037
00038 TAO_END_VERSIONED_NAMESPACE_DECL
00039
00040
00041
00042 ACE_STATIC_SVC_DEFINE (
00043 TAO_Default_Stub_Factory,
00044 ACE_TEXT ("Default_Stub_Factory"),
00045 ACE_SVC_OBJ_T,
00046 &ACE_SVC_NAME (TAO_Default_Stub_Factory),
00047 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00048 0
00049 )
00050 ACE_FACTORY_DEFINE (TAO, TAO_Default_Stub_Factory)