diff options
Diffstat (limited to 'TAO/tests/Bug_3276_Regression/Servant_Locator.h')
-rw-r--r-- | TAO/tests/Bug_3276_Regression/Servant_Locator.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/TAO/tests/Bug_3276_Regression/Servant_Locator.h b/TAO/tests/Bug_3276_Regression/Servant_Locator.h new file mode 100644 index 00000000000..a22e5612d7f --- /dev/null +++ b/TAO/tests/Bug_3276_Regression/Servant_Locator.h @@ -0,0 +1,28 @@ +// $Id$ + +#ifndef _SERVANT_LOCATOR_H_ +#define _SERVANT_LOCATOR_H_ + +#include "tao/PortableServer/PortableServer.h" +#include "tao/PortableServer/ServantLocatorC.h" +#include "tao/ORB.h" + +class Servant_Locator : public PortableServer::ServantLocator +{ +public: + virtual PortableServer::Servant preinvoke (const PortableServer::ObjectId &oid, + PortableServer::POA_ptr adapter, + const char *operation, + PortableServer::ServantLocator::Cookie &the_cookie); + // This method is invoked by a POA whenever it receives a request. + + virtual void postinvoke (const PortableServer::ObjectId &oid, + PortableServer::POA_ptr adapter, + const char *operation, + PortableServer::ServantLocator::Cookie the_cookie, + PortableServer::Servant the_servant); + // This method is invoked whenever a servant completes a + // request. +}; + +#endif /* _SERVANT_LOCATOR_H */ |