1 #include "tao/orbconf.h"
3 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
5 #include "tao/PortableServer/RequestProcessingStrategyDefaultServantFI.h"
6 #include "tao/PortableServer/RequestProcessingStrategy.h"
7 #include "tao/PortableServer/RequestProcessingStrategyDefaultServant.h"
8 #include "ace/Dynamic_Service.h"
9 #include "ace/Log_Msg.h"
11 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
15 namespace Portable_Server
17 RequestProcessingStrategy
*
18 RequestProcessingStrategyDefaultServantFactoryImpl::create (
19 ::PortableServer::RequestProcessingPolicyValue value
,
20 ::PortableServer::ServantRetentionPolicyValue
/*srvalue*/)
22 RequestProcessingStrategy
* strategy
= 0;
26 case ::PortableServer::USE_DEFAULT_SERVANT
:
28 ACE_NEW_RETURN (strategy
, RequestProcessingStrategyDefaultServant
, 0);
33 TAOLIB_ERROR ((LM_ERROR
, "Incorrect type in RequestProcessingStrategyDefaultServantFactoryImpl"));
42 RequestProcessingStrategyDefaultServantFactoryImpl::destroy (
43 RequestProcessingStrategy
*strategy
)
45 strategy
->strategy_cleanup ();
52 ACE_STATIC_SVC_DEFINE (
53 RequestProcessingStrategyDefaultServantFactoryImpl
,
54 ACE_TEXT ("RequestProcessingStrategyDefaultServantFactory"),
56 &ACE_SVC_NAME (RequestProcessingStrategyDefaultServantFactoryImpl
),
57 ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ
,
60 ACE_FACTORY_NAMESPACE_DEFINE (
62 RequestProcessingStrategyDefaultServantFactoryImpl
,
63 TAO::Portable_Server::RequestProcessingStrategyDefaultServantFactoryImpl
)
65 TAO_END_VERSIONED_NAMESPACE_DECL
67 #endif /* TAO_HAS_MINIMUM_POA == 0 */