RequestProcessingStrategyServantLocator.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file RequestProcessingStrategyServantLocator.h
00006  *
00007  *  RequestProcessingStrategyServantLocator.h,v 1.8 2006/06/20 07:15:16 jwillemsen Exp
00008  *
00009  *  @author  Johnny Willemsen  <jwillemsen@remedy.nl>
00010  */
00011 //=============================================================================
00012 
00013 #ifndef TAO_REQUESTPROCESSINGSTRATEGYSERVANTLOCATOR_H
00014 #define TAO_REQUESTPROCESSINGSTRATEGYSERVANTLOCATOR_H
00015 #include /**/ "ace/pre.h"
00016 
00017 #include "tao/PortableServer/RequestProcessingStrategyServantManager.h"
00018 
00019 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00020 # pragma once
00021 #endif /* ACE_LACKS_PRAGMA_ONCE */
00022 
00023 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO)
00024 
00025 #include "tao/PortableServer/Servant_Location.h"
00026 #include "tao/PortableServer/PortableServer.h"
00027 #include "tao/PortableServer/ServantLocatorC.h"
00028 
00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00030 
00031 namespace TAO
00032 {
00033   namespace Portable_Server
00034   {
00035     class RequestProcessingStrategyServantLocator
00036       : public RequestProcessingStrategyServantManager
00037     {
00038     public:
00039       RequestProcessingStrategyServantLocator (void);
00040 
00041       virtual void strategy_cleanup(ACE_ENV_SINGLE_ARG_DECL);
00042 
00043       PortableServer::ServantManager_ptr get_servant_manager (
00044         ACE_ENV_SINGLE_ARG_DECL)
00045           ACE_THROW_SPEC ((CORBA::SystemException,
00046                            PortableServer::POA::WrongPolicy));
00047 
00048       void set_servant_manager (
00049         PortableServer::ServantManager_ptr imgr
00050         ACE_ENV_ARG_DECL)
00051           ACE_THROW_SPEC ((CORBA::SystemException,
00052                            PortableServer::POA::WrongPolicy));
00053 
00054       virtual TAO_SERVANT_LOCATION locate_servant (
00055         const PortableServer::ObjectId &system_id,
00056         PortableServer::Servant &servant
00057         ACE_ENV_ARG_DECL);
00058 
00059       virtual void post_invoke_servant_cleanup(
00060         const PortableServer::ObjectId &system_id,
00061         const TAO::Portable_Server::Servant_Upcall &servant_upcall);
00062 
00063       virtual PortableServer::Servant locate_servant (
00064         const char *operation,
00065         const PortableServer::ObjectId &system_id,
00066         TAO::Portable_Server::Servant_Upcall &servant_upcall,
00067         TAO::Portable_Server::POA_Current_Impl &poa_current_impl,
00068         int &wait_occurred_restart_call
00069         ACE_ENV_ARG_DECL);
00070 
00071       virtual void cleanup_servant (
00072         PortableServer::Servant servant,
00073         const PortableServer::ObjectId &user_id
00074         ACE_ENV_ARG_DECL);
00075 
00076       virtual void etherealize_objects (CORBA::Boolean etherealize_objects);
00077 
00078     private:
00079       PortableServer::ServantLocator_var servant_locator_;
00080     };
00081   }
00082 }
00083 
00084 TAO_END_VERSIONED_NAMESPACE_DECL
00085 
00086 #endif /* TAO_HAS_MINIMUM_POA == 0 */
00087 
00088 #include /**/ "ace/post.h"
00089 #endif /* TAO_REQUESTPROCESSINGSTRATEGYSERVANTLOCATOR_H */

Generated on Thu Nov 9 12:40:41 2006 for TAO_PortableServer by doxygen 1.3.6