Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / IdUniquenessStrategyUnique.cpp
blobeb8905982187cfd030745069bb8b8e527b0b5c3f
1 #include "tao/PortableServer/IdUniquenessStrategyUnique.h"
2 #include "tao/PortableServer/Root_POA.h"
4 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
6 namespace TAO
8 namespace Portable_Server
10 void
11 IdUniquenessStrategyUnique::strategy_init (
12 TAO_Root_POA *poa)
14 poa_ = poa;
17 void
18 IdUniquenessStrategyUnique::strategy_cleanup ()
20 poa_ = nullptr;
23 bool
24 IdUniquenessStrategyUnique::is_servant_activation_allowed (
25 PortableServer::Servant servant,
26 bool &wait_occurred_restart_call)
28 // If the specified servant is already in the Active Object Map, the
29 // ServantAlreadyActive exception is raised.
30 int const result =
31 this->poa_->is_servant_active (servant,
32 wait_occurred_restart_call);
34 return (!(result || wait_occurred_restart_call));
37 bool
38 IdUniquenessStrategyUnique::allow_multiple_activations () const
40 return false;
45 TAO_END_VERSIONED_NAMESPACE_DECL