summaryrefslogtreecommitdiff
path: root/TAO/tests/POA/Forwarding/Servant_Locator.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/POA/Forwarding/Servant_Locator.h')
-rw-r--r--TAO/tests/POA/Forwarding/Servant_Locator.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/TAO/tests/POA/Forwarding/Servant_Locator.h b/TAO/tests/POA/Forwarding/Servant_Locator.h
deleted file mode 100644
index 10f0049afff..00000000000
--- a/TAO/tests/POA/Forwarding/Servant_Locator.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// $Id$
-
-//================================================================================
-//
-// = LIBRARY
-// TAO/tests/POA/Forwarding/Servant_Locator
-//
-// = FILENAME
-// Servant_Locator.h
-//
-// = DESCRIPTION
-// Defines a MyFooServantLocator class , used with a POA having
-// a NON_RETAIN policy
-//
-// = AUTHOR
-// Irfan Pyarali
-//
-//==================================================================================
-
-#include "tao/corba.h"
-
-#if !defined (MYFOOSERVANTLOCATOR_H)
-#define MYFOOSERVANTLOCATOR_H
-
-
-class MyFooServantLocator : public POA_PortableServer::ServantLocator
-{
- // = TITLE
- // This class is used by a POA with USE_SERVANT_MANAGER and
- // NON_RETAIN policy.
- public:
- MyFooServantLocator (CORBA::Object_ptr forward_to_ptr);
- // constructor
-
- virtual PortableServer::Servant preinvoke (const PortableServer::ObjectId &oid,
- PortableServer::POA_ptr adapter,
- const char *operation,
- PortableServer::ServantLocator::Cookie &the_cookie,
- CORBA::Environment &env);
- // This method is invoked by a POA whenever it receives a request
- // for MyFoo object that is not currently active.
-
- 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);
- // This method is invoked whenever a MyFooServant completes a
- // request.
-
- void forward (CORBA::Environment &env);
-
- private:
- int counter_;
- // Counter for number of invocations of this.
-
- PortableServer::Servant servant;
- // There really exists only one servant, which is returned all the time.
-
- CORBA::Object_ptr forward_to_ptr_;
- // location to forward to
-
- unsigned int forwarding;
- // flag to tell if to forward or not.
-};
-
-#endif // MYFOOSERVANTLOCATOR_H
-