Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Bug_3276_Regression / Servant_Locator.h
blobdfd12fc855fcbe5a9b4bf722d21867ef59cc8616
1 #ifndef _SERVANT_LOCATOR_H_
2 #define _SERVANT_LOCATOR_H_
4 #include "tao/PortableServer/PortableServer.h"
5 #include "tao/PortableServer/ServantLocatorC.h"
6 #include "tao/LocalObject.h"
8 class Servant_Locator
9 : public PortableServer::ServantLocator
10 , public virtual ::CORBA::LocalObject
12 public:
13 virtual PortableServer::Servant preinvoke (const PortableServer::ObjectId &oid,
14 PortableServer::POA_ptr adapter,
15 const char *operation,
16 PortableServer::ServantLocator::Cookie &the_cookie);
17 // This method is invoked by a POA whenever it receives a request.
19 virtual void postinvoke (const PortableServer::ObjectId &oid,
20 PortableServer::POA_ptr adapter,
21 const char *operation,
22 PortableServer::ServantLocator::Cookie the_cookie,
23 PortableServer::Servant the_servant);
24 // This method is invoked whenever a servant completes a
25 // request.
28 #endif /* _SERVANT_LOCATOR_H_ */