00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file IdUniquenessStrategyMultiple.h 00006 * 00007 * $Id: IdUniquenessStrategyMultiple.h 76551 2007-01-24 13:42:44Z johnnyw $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_ID_UNIQUENESSSTRATEGY_MULITPLE_H 00014 #define TAO_ID_UNIQUENESSSTRATEGY_MULITPLE_H 00015 #include /**/ "ace/pre.h" 00016 00017 #include "tao/PortableServer/portableserver_export.h" 00018 00019 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00020 # pragma once 00021 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00022 00023 #include "tao/PortableServer/IdUniquenessStrategy.h" 00024 #include "ace/Service_Config.h" 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 namespace TAO 00029 { 00030 namespace Portable_Server 00031 { 00032 class TAO_PortableServer_Export IdUniquenessStrategyMultiple 00033 : public IdUniquenessStrategy 00034 { 00035 public: 00036 virtual void strategy_init (TAO_Root_POA *poa); 00037 00038 virtual void strategy_cleanup (void); 00039 00040 virtual bool is_servant_activation_allowed ( 00041 PortableServer::Servant servant, 00042 bool &w); 00043 00044 virtual bool allow_multiple_activations (void) const; 00045 00046 virtual ::PortableServer::IdUniquenessPolicyValue type() const; 00047 }; 00048 00049 } 00050 } 00051 00052 TAO_END_VERSIONED_NAMESPACE_DECL 00053 00054 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdUniquenessStrategyMultiple) 00055 ACE_FACTORY_DECLARE (TAO_PortableServer, IdUniquenessStrategyMultiple) 00056 00057 00058 #include /**/ "ace/post.h" 00059 #endif /* TAO_ID_UNIQUENESSSTRATEGY_MULITPLE_H */