00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file RequestProcessingStrategyServantManager.h 00006 * 00007 * $Id: RequestProcessingStrategyServantManager.h 76995 2007-02-11 12:51:42Z johnnyw $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_REQUESTPROCESSINGSTRATEGYSERVANTMANAGER_H 00014 #define TAO_REQUESTPROCESSINGSTRATEGYSERVANTMANAGER_H 00015 #include /**/ "ace/pre.h" 00016 00017 #include "tao/PortableServer/RequestProcessingStrategy.h" 00018 00019 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00020 # pragma once 00021 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00022 00023 #include "tao/PortableServer/Servant_Location.h" 00024 #include "tao/PortableServer/PortableServer.h" 00025 00026 #if (TAO_HAS_MINIMUM_POA == 0) && !defined (CORBA_E_COMPACT) && !defined (CORBA_E_MICRO) 00027 00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00029 00030 namespace TAO 00031 { 00032 namespace Portable_Server 00033 { 00034 class RequestProcessingStrategyServantManager 00035 : public RequestProcessingStrategy 00036 { 00037 public: 00038 RequestProcessingStrategyServantManager (void); 00039 00040 PortableServer::Servant get_servant (void); 00041 00042 void set_servant (PortableServer::Servant servant); 00043 00044 void validate_servant_manager ( 00045 PortableServer::ServantManager_ptr servant_manager 00046 ); 00047 00048 virtual PortableServer::Servant system_id_to_servant ( 00049 const PortableServer::ObjectId &system_id); 00050 00051 virtual PortableServer::Servant id_to_servant ( 00052 const PortableServer::ObjectId &id); 00053 00054 virtual PortableServer::ObjectId *servant_to_id ( 00055 PortableServer::Servant servant); 00056 00057 virtual ::PortableServer::RequestProcessingPolicyValue type() const; 00058 }; 00059 } 00060 } 00061 00062 TAO_END_VERSIONED_NAMESPACE_DECL 00063 00064 #endif /* TAO_HAS_MINIMUM_POA == 0 */ 00065 00066 #include /**/ "ace/post.h" 00067 #endif /* TAO_REQUESTPROCESSINGSTRATEGYSERVANTMANAGER_H */