summaryrefslogtreecommitdiff
path: root/TAO/tao/PortableServer/ServantRetentionStrategyFactory.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/PortableServer/ServantRetentionStrategyFactory.h')
-rw-r--r--TAO/tao/PortableServer/ServantRetentionStrategyFactory.h48
1 files changed, 48 insertions, 0 deletions
diff --git a/TAO/tao/PortableServer/ServantRetentionStrategyFactory.h b/TAO/tao/PortableServer/ServantRetentionStrategyFactory.h
new file mode 100644
index 00000000000..ee5a233af0a
--- /dev/null
+++ b/TAO/tao/PortableServer/ServantRetentionStrategyFactory.h
@@ -0,0 +1,48 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file ServantRetentionStrategyFactory.h
+ *
+ * $Id$
+ *
+ * @author Johnny Willemsen <jwillemsen@remedy.nl>
+ */
+//=============================================================================
+
+#ifndef TAO_PORTABLESERVER_SERVANTRETENTIONSTRATEGYFACTORY_H
+#define TAO_PORTABLESERVER_SERVANTRETENTIONSTRATEGYFACTORY_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/ServantRetentionPolicyC.h"
+
+namespace TAO
+{
+ namespace Portable_Server
+ {
+ class ServantRetentionStrategy;
+
+ class TAO_PortableServer_Export ServantRetentionStrategyFactory
+ : public virtual StrategyFactory
+ {
+ public:
+ /// Create a new servant retention strategy
+ virtual ServantRetentionStrategy* create (
+ ::PortableServer::ServantRetentionPolicyValue value) = 0;
+
+ virtual void destroy (
+ ServantRetentionStrategy *strategy
+ ACE_ENV_ARG_DECL) = 0;
+ };
+ }
+}
+
+#include /**/ "ace/post.h"
+#endif /* TAO_PORTABLESERVER_SERVANTRETENTIONSTRATEGYFACTORY_H */