00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file LifespanStrategyTransientFactoryImpl.h 00006 * 00007 * $Id: LifespanStrategyTransientFactoryImpl.h 76551 2007-01-24 13:42:44Z johnnyw $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_PORTABLESERVER_LIFEPSPANSTRATEGYTRANSIENTFACTORYIMPL_H 00014 #define TAO_PORTABLESERVER_LIFEPSPANSTRATEGYTRANSIENTFACTORYIMPL_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include "tao/PortableServer/portableserver_export.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "ace/Service_Config.h" 00025 #include "tao/PortableServer/LifespanStrategyFactory.h" 00026 00027 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00028 00029 namespace TAO 00030 { 00031 namespace Portable_Server 00032 { 00033 class TAO_PortableServer_Export LifespanStrategyTransientFactoryImpl 00034 : public LifespanStrategyFactory 00035 { 00036 public: 00037 /// Create a new strategy 00038 virtual LifespanStrategy* create ( 00039 ::PortableServer::LifespanPolicyValue value); 00040 00041 /// Cleanup the given strategy instance 00042 virtual void destroy ( 00043 LifespanStrategy *strategy 00044 ); 00045 }; 00046 } 00047 } 00048 00049 TAO_END_VERSIONED_NAMESPACE_DECL 00050 00051 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_PortableServer, LifespanStrategyTransientFactoryImpl) 00052 ACE_FACTORY_DECLARE (TAO_PortableServer, LifespanStrategyTransientFactoryImpl) 00053 00054 00055 #include /**/ "ace/post.h" 00056 00057 #endif /* TAO_PORTABLESERVER_LIFEPSPANSTRATEGYTRANSIENTFACTORYIMPL_H */