Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / IORInterceptor / IORInterceptor_Adapter_Factory_Impl.cpp
blob837c4f852ea0063222e711606b8c79e20ece8940
1 // -*- C++ -*-
2 #include "tao/IORInterceptor/IORInterceptor_Adapter_Impl.h"
3 #include "tao/IORInterceptor/IORInterceptor_Adapter_Factory_Impl.h"
5 #include "tao/ORB_Core.h"
7 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
9 TAO_IORInterceptor_Adapter_Factory_Impl::~
10 TAO_IORInterceptor_Adapter_Factory_Impl ()
14 TAO_IORInterceptor_Adapter *
15 TAO_IORInterceptor_Adapter_Factory_Impl::create ()
17 TAO_IORInterceptor_Adapter_Impl *nia = 0;
18 ACE_NEW_THROW_EX (nia,
19 TAO_IORInterceptor_Adapter_Impl (),
20 CORBA::NO_MEMORY ());
22 return nia;
26 // *********************************************************************
28 // Initialization and registration of dynamic service object.
30 int
31 TAO_IORInterceptor_Adapter_Factory_Impl::Initializer ()
33 TAO_ORB_Core::iorinterceptor_adapter_factory_name (
34 "Concrete_IORInterceptor_Adapter_Factory");
36 return
37 ACE_Service_Config::process_directive (
38 ace_svc_desc_TAO_IORInterceptor_Adapter_Factory_Impl);
41 TAO_END_VERSIONED_NAMESPACE_DECL
43 ACE_STATIC_SVC_DEFINE (
44 TAO_IORInterceptor_Adapter_Factory_Impl,
45 ACE_TEXT ("Concrete_IORInterceptor_Adapter_Factory"),
46 ACE_SVC_OBJ_T,
47 &ACE_SVC_NAME (TAO_IORInterceptor_Adapter_Factory_Impl),
48 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
52 ACE_FACTORY_DEFINE (TAO_IORInterceptor, TAO_IORInterceptor_Adapter_Factory_Impl)