summaryrefslogtreecommitdiff
path: root/TAO/tao/Service_Context_Handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Service_Context_Handler.h')
-rw-r--r--TAO/tao/Service_Context_Handler.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/TAO/tao/Service_Context_Handler.h b/TAO/tao/Service_Context_Handler.h
new file mode 100644
index 00000000000..93adb979d94
--- /dev/null
+++ b/TAO/tao/Service_Context_Handler.h
@@ -0,0 +1,47 @@
+// -*- C++ -*-
+
+// ===================================================================
+/**
+ * @file Service_Context_Handler.h
+ *
+ * $Id$
+ *
+ * @author Johnny Willemsen <jwillemsen@remedy.nl>
+ */
+// ===================================================================
+
+#ifndef TAO_SERVICE_CONTEXT_HANDLER_H
+#define TAO_SERVICE_CONTEXT_HANDLER_H
+
+#include /**/ "ace/pre.h"
+
+#include "tao/IOP_IORC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+class TAO_ServerRequest;
+
+/**
+ * This is the base of handler classes that each can process a certain
+ * service context. This way optional libraries can plugin handlers to the
+ * core of TAO. Each handler has to be registered in the Service Context
+ * Handler registry
+ */
+class TAO_Export TAO_Service_Context_Handler
+{
+ public:
+ TAO_Service_Context_Handler (void);
+ virtual int process_service_context (TAO_ServerRequest& server_request,
+ const IOP::ServiceContext& context) = 0;
+ virtual ~TAO_Service_Context_Handler (void);
+};
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+
+#endif /* TAO_SERVICE_CONTEXT_HANDLER_H */