Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tao / PI_Server / ServerRequestInterceptor_Factory_Impl.cpp
blobc4123f9b3251c76cdb125a681c643fc17c9bf5d7
1 /* -*- C++ -*- */
3 // =================================================================
4 /**
5 * @file ServerRequestInterceptor_Factory_Impl.cpp
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
8 */
9 // =================================================================
11 #include "tao/PI_Server/ServerRequestInterceptor_Factory_Impl.h"
13 #if TAO_HAS_INTERCEPTORS == 1
15 #include "tao/PI_Server/ServerInterceptorAdapter.h"
17 #include "tao/ORB.h"
18 #include "tao/debug.h"
20 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
22 TAO::ServerRequestInterceptor_Adapter*
23 TAO_ServerRequestInterceptor_Adapter_Factory_Impl::create ()
25 TAO::ServerRequestInterceptor_Adapter_Impl* obj = 0;
26 ACE_NEW_RETURN (obj,
27 TAO::ServerRequestInterceptor_Adapter_Impl ,
28 0);
29 return obj;
33 ACE_STATIC_SVC_DEFINE (TAO_ServerRequestInterceptor_Adapter_Factory_Impl,
34 ACE_TEXT ("ServerRequestInterceptor_Adapter_Factory"),
35 ACE_SVC_OBJ_T,
36 &ACE_SVC_NAME (TAO_ServerRequestInterceptor_Adapter_Factory_Impl),
37 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
39 ACE_FACTORY_DEFINE (TAO_PI_Server, TAO_ServerRequestInterceptor_Adapter_Factory_Impl)
41 TAO_END_VERSIONED_NAMESPACE_DECL
43 #endif /* TAO_HAS_INTERCEPTORS */