diff options
Diffstat (limited to 'TAO/tests/POA/On_Demand_Activation/Servant_Locator.h')
-rw-r--r-- | TAO/tests/POA/On_Demand_Activation/Servant_Locator.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/TAO/tests/POA/On_Demand_Activation/Servant_Locator.h b/TAO/tests/POA/On_Demand_Activation/Servant_Locator.h new file mode 100644 index 00000000000..6abfb278eb5 --- /dev/null +++ b/TAO/tests/POA/On_Demand_Activation/Servant_Locator.h @@ -0,0 +1,24 @@ +#include "tao/corba.h" + +class MyFooServantLocator : public POA_PortableServer::ServantLocator +{ +public: + MyFooServantLocator (void); + + virtual PortableServer::Servant preinvoke (const PortableServer::ObjectId &oid, + PortableServer::POA_ptr adapter, + const char *operation, + PortableServer::ServantLocator::Cookie &the_cookie, + CORBA::Environment &env); + + virtual void postinvoke (const PortableServer::ObjectId &oid, + PortableServer::POA_ptr adapter, + const char *operation, + PortableServer::ServantLocator::Cookie the_cookie, + PortableServer::Servant the_servant, + CORBA::Environment &env); +private: + + int counter_; +}; + |