3 //=============================================================================
5 * @file LifespanStrategyFactoryImpl.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 //=============================================================================
11 #ifndef TAO_PORTABLESERVER_LIFEPSPANSTRATEGYFACTORYIMPL_H
12 #define TAO_PORTABLESERVER_LIFEPSPANSTRATEGYFACTORYIMPL_H
13 #include /**/ "ace/pre.h"
15 #include "tao/PortableServer/portableserver_export.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "ace/Service_Config.h"
22 #include "tao/PortableServer/LifespanStrategyFactory.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 namespace Portable_Server
30 class TAO_PortableServer_Export LifespanStrategyFactoryImpl
31 : public LifespanStrategyFactory
34 /// Create a new servant retention strategy
35 virtual LifespanStrategy
* create (::PortableServer::LifespanPolicyValue value
);
37 /// Cleanup the given strategy instance
38 virtual void destroy (LifespanStrategy
*strategy
);
42 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer
, LifespanStrategyFactoryImpl
)
43 ACE_FACTORY_DECLARE (TAO_PortableServer
, LifespanStrategyFactoryImpl
)
46 TAO_END_VERSIONED_NAMESPACE_DECL
49 #include /**/ "ace/post.h"
50 #endif /* TAO_PORTABLESERVER_LIFEPSPANSTRATEGYFACTORYIMPL_H */