3 //=============================================================================
5 * @file IdUniquenessStrategy.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 //=============================================================================
11 #ifndef TAO_ID_UNIQUENESS_STRATEGY_H
12 #define TAO_ID_UNIQUENESS_STRATEGY_H
13 #include /**/ "ace/pre.h"
15 #include "tao/PortableServer/IdUniquenessPolicyC.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include "tao/PortableServer/PS_ForwardC.h"
23 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
27 namespace Portable_Server
29 class IdUniquenessStrategy
32 IdUniquenessStrategy ();
33 virtual ~IdUniquenessStrategy () = default;
35 virtual void strategy_init (TAO_Root_POA
*poa
);
37 virtual void strategy_cleanup ();
40 * Validate if the servant may be activated
41 * @retval true This servant may be activated
42 * @retval false This servant may not be activated
44 virtual bool is_servant_activation_allowed (PortableServer::Servant s
, bool &w
) = 0;
46 virtual bool allow_multiple_activations () const = 0;
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #include /**/ "ace/post.h"
54 #endif /* TAO_ID_UNIQUENESS_STRATEGY_H */