Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / PortableServer / ServantRetentionPolicy.cpp
blob6c7eb85a1718d9767339bf1ecd6b69a4efa3adc2
1 #include "tao/orbconf.h"
3 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
5 #include "tao/PortableServer/ServantRetentionPolicy.h"
6 #include "tao/PortableServer/PortableServer.h"
8 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
10 namespace TAO
12 namespace Portable_Server
14 ServantRetentionPolicy::ServantRetentionPolicy (
15 ::PortableServer::ServantRetentionPolicyValue value) :
16 value_ (value)
20 CORBA::Policy_ptr
21 ServantRetentionPolicy::copy ()
23 ServantRetentionPolicy *copy = 0;
24 ACE_NEW_THROW_EX (copy,
25 ServantRetentionPolicy (this->value_),
26 CORBA::NO_MEMORY ());
28 return copy;
31 void
32 ServantRetentionPolicy::destroy ()
36 ::PortableServer::ServantRetentionPolicyValue
37 ServantRetentionPolicy::value ()
39 return this->value_;
42 CORBA::PolicyType
43 ServantRetentionPolicy::policy_type ()
45 return ::PortableServer::SERVANT_RETENTION_POLICY_ID;
48 TAO_Cached_Policy_Type
49 ServantRetentionPolicy::_tao_cached_type () const
51 return TAO_CACHED_POLICY_SERVANT_RETENTION;
54 TAO_Policy_Scope
55 ServantRetentionPolicy::_tao_scope () const
57 return TAO_POLICY_POA_SCOPE;
62 TAO_END_VERSIONED_NAMESPACE_DECL
64 #endif /* TAO_HAS_MINIMUM_POA == 0 */