00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file IdUniquenessStrategyFactory.h 00006 * 00007 * $Id: IdUniquenessStrategyFactory.h 76551 2007-01-24 13:42:44Z johnnyw $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_PORTABLESERVER_IDUNIQUENESSSTRATEGYFACTORY_H 00014 #define TAO_PORTABLESERVER_IDUNIQUENESSSTRATEGYFACTORY_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/StrategyFactory.h" 00024 #include "tao/PortableServer/IdUniquenessPolicyC.h" 00025 00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00027 00028 namespace TAO 00029 { 00030 namespace Portable_Server 00031 { 00032 class IdUniquenessStrategy; 00033 00034 class TAO_PortableServer_Export IdUniquenessStrategyFactory 00035 : public StrategyFactory 00036 { 00037 public: 00038 /// Create a new servant retention strategy 00039 virtual IdUniquenessStrategy* create ( 00040 ::PortableServer::IdUniquenessPolicyValue value) = 0; 00041 00042 /// Cleanup the given strategy instance 00043 virtual void destroy ( 00044 IdUniquenessStrategy *strategy 00045 ) = 0; 00046 }; 00047 } 00048 } 00049 00050 TAO_END_VERSIONED_NAMESPACE_DECL 00051 00052 #include /**/ "ace/post.h" 00053 #endif /* TAO_PORTABLESERVER_IDUNIQUENESSSTRATEGYFACTORY_H */