IdUniquenessStrategyMultiple.cpp

Go to the documentation of this file.
00001 // IdUniquenessStrategyMultiple.cpp,v 1.7 2006/03/10 07:19:13 jtc Exp
00002 
00003 #include "tao/PortableServer/IdUniquenessStrategyMultiple.h"
00004 
00005 ACE_RCSID (PortableServer,
00006            Id_Uniqueness_Strategy,
00007            "IdUniquenessStrategyMultiple.cpp,v 1.7 2006/03/10 07:19:13 jtc Exp")
00008 
00009 
00010 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00011 
00012 namespace TAO
00013 {
00014   namespace Portable_Server
00015   {
00016     void
00017     IdUniquenessStrategyMultiple::strategy_init (
00018       TAO_Root_POA * /*poa*/
00019       ACE_ENV_ARG_DECL_NOT_USED)
00020     {
00021     }
00022 
00023     void
00024     IdUniquenessStrategyMultiple::strategy_cleanup(
00025       ACE_ENV_SINGLE_ARG_DECL_NOT_USED)
00026     {
00027     }
00028 
00029     bool
00030     IdUniquenessStrategyMultiple::is_servant_activation_allowed (
00031       PortableServer::Servant /*servant*/,
00032       int & /*wait_occurred_restart_call*/)
00033     {
00034       // With the multiple id strategy we can always activate the servant
00035       // another time
00036       return true;
00037     }
00038 
00039     bool
00040     IdUniquenessStrategyMultiple::allow_multiple_activations (void) const
00041     {
00042       return true;
00043     }
00044 
00045     ::PortableServer::IdUniquenessPolicyValue
00046     IdUniquenessStrategyMultiple::type() const
00047     {
00048       return ::PortableServer::MULTIPLE_ID;
00049     }
00050 
00051   }
00052 }
00053 
00054 TAO_END_VERSIONED_NAMESPACE_DECL
00055 
00056 ACE_FACTORY_NAMESPACE_DEFINE (
00057   ACE_Local_Service,
00058   IdUniquenessStrategyMultiple,
00059   TAO::Portable_Server::IdUniquenessStrategyMultiple)
00060 
00061 ACE_STATIC_SVC_DEFINE (
00062   IdUniquenessStrategyMultiple,
00063   ACE_TEXT ("IdUniquenessStrategyMultiple"),
00064   ACE_SVC_OBJ_T,
00065   &ACE_SVC_NAME (IdUniquenessStrategyMultiple),
00066   ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00067   0)

Generated on Thu Nov 9 12:40:38 2006 for TAO_PortableServer by doxygen 1.3.6