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
12 namespace Portable_Server
14 ServantRetentionPolicy::ServantRetentionPolicy (
15 ::PortableServer::ServantRetentionPolicyValue value
) :
21 ServantRetentionPolicy::copy ()
23 ServantRetentionPolicy
*copy
= 0;
24 ACE_NEW_THROW_EX (copy
,
25 ServantRetentionPolicy (this->value_
),
32 ServantRetentionPolicy::destroy ()
36 ::PortableServer::ServantRetentionPolicyValue
37 ServantRetentionPolicy::value ()
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
;
55 ServantRetentionPolicy::_tao_scope () const
57 return TAO_POLICY_POA_SCOPE
;
62 TAO_END_VERSIONED_NAMESPACE_DECL
64 #endif /* TAO_HAS_MINIMUM_POA == 0 */