Go to the documentation of this file.00001
00002
00003 #include "tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h"
00004 #include "tao/ObjRefTemplate/ORT_Adapter_Impl.h"
00005 #include "tao/PortableServer/Root_POA.h"
00006
00007 ACE_RCSID (ORT,
00008 ORT_Adapter_Factory_Impl,
00009 "$Id: ORT_Adapter_Factory_Impl.cpp 79958 2007-11-09 09:04:45Z johnnyw $")
00010
00011 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00012
00013 namespace TAO
00014 {
00015 ORT_Adapter *
00016 ORT_Adapter_Factory_Impl::create ()
00017 {
00018 ORT_Adapter_Impl * new_ort_adapter = 0;
00019
00020 ACE_NEW_RETURN (new_ort_adapter,
00021 TAO::ORT_Adapter_Impl,
00022 0);
00023
00024 return new_ort_adapter;
00025 }
00026
00027 void
00028 ORT_Adapter_Factory_Impl::destroy (ORT_Adapter * adapter)
00029 {
00030 delete adapter;
00031 }
00032
00033 int
00034 ORT_Adapter_Factory_Impl::Initializer (void)
00035 {
00036 TAO_Root_POA::ort_adapter_factory_name ("Concrete_ORT_Adapter_Factory");
00037
00038 return ACE_Service_Config::process_directive (
00039 ace_svc_desc_ORT_Adapter_Factory_Impl);
00040 }
00041 }
00042
00043 TAO_END_VERSIONED_NAMESPACE_DECL
00044
00045 ACE_STATIC_SVC_DEFINE (
00046 ORT_Adapter_Factory_Impl,
00047 ACE_TEXT ("Concrete_ORT_Adapter_Factory"),
00048 ACE_SVC_OBJ_T,
00049 &ACE_SVC_NAME (ORT_Adapter_Factory_Impl),
00050 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00051 0)
00052
00053 ACE_FACTORY_NAMESPACE_DEFINE (
00054 TAO_ORT,
00055 ORT_Adapter_Factory_Impl,
00056 TAO::ORT_Adapter_Factory_Impl)