Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / ObjRefTemplate / ORT_Adapter_Factory_Impl.cpp
blob74c4e0893cdce7d1f73acbc150b6cffee71e891e
1 #include "tao/ObjRefTemplate/ORT_Adapter_Factory_Impl.h"
2 #include "tao/ObjRefTemplate/ORT_Adapter_Impl.h"
3 #include "tao/PortableServer/Root_POA.h"
5 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
7 namespace TAO
9 ORT_Adapter *
10 ORT_Adapter_Factory_Impl::create ()
12 ORT_Adapter_Impl * new_ort_adapter = 0;
14 ACE_NEW_RETURN (new_ort_adapter,
15 TAO::ORT_Adapter_Impl,
16 0);
18 return new_ort_adapter;
21 void
22 ORT_Adapter_Factory_Impl::destroy (ORT_Adapter * adapter)
24 delete adapter;
27 int
28 ORT_Adapter_Factory_Impl::Initializer ()
30 TAO_Root_POA::ort_adapter_factory_name ("Concrete_ORT_Adapter_Factory");
32 return ACE_Service_Config::process_directive (
33 ace_svc_desc_ORT_Adapter_Factory_Impl);
37 TAO_END_VERSIONED_NAMESPACE_DECL
39 ACE_STATIC_SVC_DEFINE (
40 ORT_Adapter_Factory_Impl,
41 ACE_TEXT ("Concrete_ORT_Adapter_Factory"),
42 ACE_SVC_OBJ_T,
43 &ACE_SVC_NAME (ORT_Adapter_Factory_Impl),
44 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
47 ACE_FACTORY_NAMESPACE_DEFINE (
48 TAO_ORT,
49 ORT_Adapter_Factory_Impl,
50 TAO::ORT_Adapter_Factory_Impl)