diff options
Diffstat (limited to 'tests/POA/On_Demand_Activation/Servant_Locator.h')
-rw-r--r-- | tests/POA/On_Demand_Activation/Servant_Locator.h | 45 |
1 files changed, 21 insertions, 24 deletions
diff --git a/tests/POA/On_Demand_Activation/Servant_Locator.h b/tests/POA/On_Demand_Activation/Servant_Locator.h index fb1460827ac..13c3e5857ab 100644 --- a/tests/POA/On_Demand_Activation/Servant_Locator.h +++ b/tests/POA/On_Demand_Activation/Servant_Locator.h @@ -1,22 +1,19 @@ // -*- C++ -*- -// $Id$ - -//================================================================================ -// -// = LIBRARY -// TAO/tests/POA/On_Demand_Activation/Servant_Locator -// -// = FILENAME -// Servant_Locator.h -// -// = DESCRIPTION -// Defines a ServantLocator class, used with a POA having a -// NON_RETAIN policy -// -// = AUTHOR -// Irfan Pyarali -// -//================================================================================== + +//============================================================================= +/** + * @file Servant_Locator.h + * + * $Id$ + * + * Defines a ServantLocator class, used with a POA having a + * NON_RETAIN policy + * + * + * @author Irfan Pyarali + */ +//============================================================================= + #include "tao/PortableServer/PortableServer.h" #include "tao/PortableServer/ServantLocatorC.h" @@ -33,27 +30,27 @@ class ServantLocator : // This class is used by a POA with USE_SERVANT_MANAGER and // NON_RETAIN policy. public: + /// constructor ServantLocator (CORBA::ORB_ptr orb); - // constructor + /// This method is invoked by a POA whenever it receives a request + /// for test object that is not currently active. 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 - // for test object that is not currently active. + /// This method is invoked whenever a test servant completes 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 test servant completes a - // request. private: + /// Counter for number of invocations of this. int counter_; - // Counter for number of invocations of this. CORBA::ORB_var orb_; }; |