diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-08-27 08:04:56 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-08-27 08:04:56 +0000 |
commit | b3ab8de1afe39759a813b2920a20c8731134660a (patch) | |
tree | b1b0af12058c4e0300dbdb551ea3aa9f012c4048 /TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp | |
parent | cc5844b32bb3e1ef6d011619f236136ee9be12c9 (diff) | |
download | ATCD-b3ab8de1afe39759a813b2920a20c8731134660a.tar.gz |
ChangeLogTag: Fri Aug 27 08:04:12 UTC 2004 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp')
-rw-r--r-- | TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp b/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp new file mode 100644 index 00000000000..76cd19704ce --- /dev/null +++ b/TAO/tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.cpp @@ -0,0 +1,60 @@ +// $Id$ + +#include "ORT_Adapter_Factory_Impl.h" +#include "ORT_Adapter_Impl.h" +#include "tao/PortableServer/POA.h" + +ACE_RCSID (ORT, + ORT_Adapter_Factory_Impl, + "$Id$") + +namespace TAO +{ + ORT_Adapter_Factory_Impl::~ORT_Adapter_Factory_Impl (void) + { + } + + ORT_Adapter * + ORT_Adapter_Factory_Impl::create (ACE_ENV_SINGLE_ARG_DECL) + ACE_THROW_SPEC ((CORBA::SystemException)) + { + ORT_Adapter_Impl * new_ort_adapter = 0; + + ACE_NEW_THROW_EX (new_ort_adapter, + TAO::ORT_Adapter_Impl, + CORBA::NO_MEMORY ()); + ACE_CHECK_RETURN (0); + + return new_ort_adapter; + } + + void + ORT_Adapter_Factory_Impl::destroy (ORT_Adapter * adapter + ACE_ENV_ARG_DECL_NOT_USED) + ACE_THROW_SPEC ((CORBA::SystemException)) + { + delete adapter; + } + + int + ORT_Adapter_Factory_Impl::Initializer (void) + { + TAO_POA::ort_adapter_factory_name ("Concrete_ORT_Adapter_Factory" + ); + + return + ACE_Service_Config::process_directive ( + ace_svc_desc_ORT_Adapter_Factory_Impl + ); + } + + ACE_STATIC_SVC_DEFINE ( + ORT_Adapter_Factory_Impl, + ACE_TEXT ("Concrete_ORT_Adapter_Factory"), + ACE_SVC_OBJ_T, + &ACE_SVC_NAME (ORT_Adapter_Factory_Impl), + ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ, + 0) + + ACE_FACTORY_DEFINE (TAO_ORT, ORT_Adapter_Factory_Impl) +} |