summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/On_Demand_Activation/Servant_Locator.h
blob: 6abfb278eb5c814e67c6767fff6c562293cff3df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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_;
};