summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/IFR_Service/Servant_Locator.h
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-20 14:32:29 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2002-07-20 14:32:29 +0000
commit313d763c57f0116ae8a4d516a339356e20578e19 (patch)
tree2f3d376496d8634487d22da4494ba47b13cedee8 /TAO/orbsvcs/IFR_Service/Servant_Locator.h
parent5cb0ff6546c403f37cca5ec8228c1c4c6b08b300 (diff)
downloadATCD-313d763c57f0116ae8a4d516a339356e20578e19.tar.gz
This commit was manufactured by cvs2svn to create branchOS-h_refactor
'OS-h_refactor'.
Diffstat (limited to 'TAO/orbsvcs/IFR_Service/Servant_Locator.h')
-rw-r--r--TAO/orbsvcs/IFR_Service/Servant_Locator.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/TAO/orbsvcs/IFR_Service/Servant_Locator.h b/TAO/orbsvcs/IFR_Service/Servant_Locator.h
new file mode 100644
index 00000000000..9a2293854b9
--- /dev/null
+++ b/TAO/orbsvcs/IFR_Service/Servant_Locator.h
@@ -0,0 +1,73 @@
+// $Id$
+
+//==========================================================================
+//
+// = LIBRARY
+// TAO/orbsvcs/IFR_Service
+//
+// = FILENAME
+// Servant_Locator.h
+//
+// = DESCRIPTION
+// Defines a servant activator subclass, used by the IFR and its POA
+//
+// = AUTHOR
+// Jeff Parsons
+//
+//==========================================================================
+
+#ifndef IFR_SERVANT_LOCATOR_H
+#define IFR_SERVANT_LOCATOR_H
+
+#include "tao/PortableServer/PortableServerC.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+class TAO_Repository_i;
+
+class IFR_ServantLocator : public PortableServer::ServantLocator
+{
+ // = TITLE
+ // IFR_ServantLocator
+ //
+ // = DESCRIPTION
+ // This class is used by the Interface Repository to create
+ // servants on demand
+ //
+public:
+ IFR_ServantLocator (TAO_Repository_i *repo);
+ // constructor
+
+ virtual PortableServer::Servant preinvoke (
+ const PortableServer::ObjectId &oid,
+ PortableServer::POA_ptr adapter,
+ const char *operation,
+ PortableServer::ServantLocator::Cookie &the_cookie
+ ACE_ENV_ARG_DECL
+ )
+ ACE_THROW_SPEC ((CORBA::SystemException,
+ PortableServer::ForwardRequest));
+ // This method is invoked by the IFR's POA whenever it receives a request
+ // for an IR object.
+
+ virtual void postinvoke (
+ const PortableServer::ObjectId &oid,
+ PortableServer::POA_ptr adapter,
+ const char *operation,
+ PortableServer::ServantLocator::Cookie the_cookie,
+ PortableServer::Servant the_servant
+ ACE_ENV_ARG_DECL
+ )
+ ACE_THROW_SPEC ((CORBA::SystemException));
+ // This method is invoked whenever an IR object servant completes a
+ // request.
+
+
+private:
+ TAO_Repository_i *repo_;
+ // Passed in to each created servant.
+};
+
+#endif /* IFR_SERVANT_LOCATOR_H */