00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file RequestProcessingStrategyServantLocator.h 00006 * 00007 * $Id: RequestProcessingStrategyServantLocator.h 76995 2007-02-11 12:51:42Z johnnyw $ 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(void); 00042 00043 PortableServer::ServantManager_ptr get_servant_manager (void); 00044 00045 void set_servant_manager (PortableServer::ServantManager_ptr imgr); 00046 00047 virtual TAO_SERVANT_LOCATION locate_servant ( 00048 const PortableServer::ObjectId &system_id, 00049 PortableServer::Servant &servant); 00050 00051 virtual void post_invoke_servant_cleanup( 00052 const PortableServer::ObjectId &system_id, 00053 const TAO::Portable_Server::Servant_Upcall &servant_upcall); 00054 00055 virtual PortableServer::Servant locate_servant ( 00056 const char *operation, 00057 const PortableServer::ObjectId &system_id, 00058 TAO::Portable_Server::Servant_Upcall &servant_upcall, 00059 TAO::Portable_Server::POA_Current_Impl &poa_current_impl, 00060 bool &wait_occurred_restart_call); 00061 00062 virtual void cleanup_servant ( 00063 PortableServer::Servant servant, 00064 const PortableServer::ObjectId &user_id); 00065 00066 virtual void etherealize_objects (CORBA::Boolean etherealize_objects); 00067 00068 private: 00069 PortableServer::ServantLocator_var servant_locator_; 00070 }; 00071 } 00072 } 00073 00074 TAO_END_VERSIONED_NAMESPACE_DECL 00075 00076 #endif /* TAO_HAS_MINIMUM_POA == 0 */ 00077 00078 #include /**/ "ace/post.h" 00079 #endif /* TAO_REQUESTPROCESSINGSTRATEGYSERVANTLOCATOR_H */