00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file IdAssignmentStrategyFactoryImpl.h 00006 * 00007 * IdAssignmentStrategyFactoryImpl.h,v 1.6 2006/03/10 07:19:13 jtc Exp 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_PORTABLESERVER_IDASSIGNMENTSTRATEGYFACTORYIMPL_H 00014 #define TAO_PORTABLESERVER_IDASSIGNMENTSTRATEGYFACTORYIMPL_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/IdAssignmentStrategyFactory.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 IdAssignmentStrategyFactoryImpl 00033 : public IdAssignmentStrategyFactory 00034 { 00035 public: 00036 /// Create a new servant retention strategy 00037 virtual IdAssignmentStrategy* create ( 00038 ::PortableServer::IdAssignmentPolicyValue value); 00039 00040 virtual void destroy ( 00041 IdAssignmentStrategy *strategy 00042 ACE_ENV_ARG_DECL); 00043 }; 00044 } 00045 } 00046 00047 TAO_END_VERSIONED_NAMESPACE_DECL 00048 00049 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, IdAssignmentStrategyFactoryImpl) 00050 ACE_FACTORY_DECLARE (TAO_PortableServer, IdAssignmentStrategyFactoryImpl) 00051 00052 #include /**/ "ace/post.h" 00053 00054 #endif /* TAO_PORTABLESERVER_IDASSIGNMENTSTRATEGYFACTORYIMPL_H */