summaryrefslogtreecommitdiff
path: root/TAO/examples/POA/On_Demand_Loading/Servant_Locator.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/examples/POA/On_Demand_Loading/Servant_Locator.h')
-rw-r--r--TAO/examples/POA/On_Demand_Loading/Servant_Locator.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/TAO/examples/POA/On_Demand_Loading/Servant_Locator.h b/TAO/examples/POA/On_Demand_Loading/Servant_Locator.h
deleted file mode 100644
index cba92c0946a..00000000000
--- a/TAO/examples/POA/On_Demand_Loading/Servant_Locator.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// $Id$
-
-//================================================================================
-//
-// = LIBRARY
-// TAO/tests/POA/On_Demand_Loading
-//
-// = FILENAME
-// Servant_Locator.h
-//
-// = DESCRIPTION
-// Defines a ServantLocator_i class , used with a POA having
-// a NON_RETAIN policy.
-//
-// = AUTHOR
-// Kirthika Parameswaran <kirthika@cs.wustl.edu>
-//
-//==================================================================================
-
-#ifndef SERVANT_LOCATOR_H
-#define SERVANT_LOCATOR_H
-
-#include "tao/corba.h"
-#include "ace/DLL.h"
-#include "Servant_Manager.h"
-
-class ServantLocator_i : public POA_PortableServer::ServantLocator
-{
- // = TITLE
- // This class is used by a POA with USE_SERVANT_MANAGER and
- // NON_RETAIN policy.
-public:
-
- ServantLocator_i (CORBA::ORB_ptr orb);
- // 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.
-
- PortableServer::ObjectId_var create_dll_object_id (const char *dllname,
- const char *factory_function);
- // Returns an ObjectId when given an dll name and the factory method
- // to be invoked in the dll.
-private:
-
- ServantManager_i servant_manager_;
- // The ServantManager_i object which provide some utility methods.
-
- int counter_;
- // Counter for number of invocations of this.
-
-};
-
-#endif /* SERVANT_LOCATOR_H */