00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file ThreadStrategySingleFactoryImpl.h 00006 * 00007 * $Id: ThreadStrategySingleFactoryImpl.h 76687 2007-01-29 19:18:13Z johnnyw $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_PORTABLESERVER_THREADPOLICYSINGLESTRATEGYFACTORYIMPL_H 00014 #define TAO_PORTABLESERVER_THREADPOLICYSINGLESTRATEGYFACTORYIMPL_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 "ace/Service_Config.h" 00024 #include "tao/PortableServer/ThreadStrategyFactory.h" 00025 00026 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) 00027 00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00029 00030 namespace TAO 00031 { 00032 namespace Portable_Server 00033 { 00034 class ThreadStrategySingleFactoryImpl 00035 : public ThreadStrategyFactory 00036 { 00037 public: 00038 /// Create a new thread strategy 00039 virtual ThreadStrategy* create ( 00040 ::PortableServer::ThreadPolicyValue value); 00041 00042 virtual void destroy (ThreadStrategy *strategy); 00043 }; 00044 } 00045 } 00046 00047 TAO_END_VERSIONED_NAMESPACE_DECL 00048 00049 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, ThreadStrategySingleFactoryImpl) 00050 ACE_FACTORY_DECLARE (TAO_PortableServer, ThreadStrategySingleFactoryImpl) 00051 00052 #endif /* TAO_HAS_MINIMUM_POA == 0 */ 00053 00054 #include /**/ "ace/post.h" 00055 #endif /* TAO_PORTABLESERVER_THREADPOLICYSINGLESTRATEGYFACTORYIMPL_H*/