diff options
Diffstat (limited to 'TAO/tao/PortableServer/RequestProcessingStrategyFactory.h')
-rw-r--r-- | TAO/tao/PortableServer/RequestProcessingStrategyFactory.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/RequestProcessingStrategyFactory.h b/TAO/tao/PortableServer/RequestProcessingStrategyFactory.h new file mode 100644 index 00000000000..bd082ec8bf2 --- /dev/null +++ b/TAO/tao/PortableServer/RequestProcessingStrategyFactory.h @@ -0,0 +1,50 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file RequestProcessingStrategyFactory.h + * + * $Id$ + * + * @author Johnny Willemsen <jwillemsen@remedy.nl> + */ +//============================================================================= + +#ifndef TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYFACTORY_H +#define TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYFACTORY_H +#include /**/ "ace/pre.h" + +#include "portableserver_export.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#include "tao/PortableServer/StrategyFactory.h" +#include "tao/PortableServer/RequestProcessingPolicyC.h" +#include "tao/PortableServer/ServantRetentionPolicyC.h" + +namespace TAO +{ + namespace Portable_Server + { + class RequestProcessingStrategy; + + class TAO_PortableServer_Export RequestProcessingStrategyFactory + : public virtual StrategyFactory + { + public: + /// Create a new servant retention strategy + virtual RequestProcessingStrategy* create ( + ::PortableServer::RequestProcessingPolicyValue value, + ::PortableServer::ServantRetentionPolicyValue srvalue) = 0; + + virtual void destroy ( + RequestProcessingStrategy *strategy + ACE_ENV_ARG_DECL) = 0; + }; + } +} + +#include /**/ "ace/post.h" +#endif /* TAO_PORTABLESERVER_REQUESTPROCESSINGSTRATEGYFACTORY_H */ |