00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file RequestProcessingStrategy.cpp 00006 * 00007 * $Id: RequestProcessingStrategy.cpp 76898 2007-02-04 18:58:07Z johnnyw $ 00008 */ 00009 //============================================================================= 00010 00011 #include "tao/PortableServer/RequestProcessingStrategy.h" 00012 00013 ACE_RCSID (PortableServer, 00014 RequestProcessingStrategy, 00015 "$Id: RequestProcessingStrategy.cpp 76898 2007-02-04 18:58:07Z johnnyw $") 00016 00017 00018 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00019 00020 namespace TAO 00021 { 00022 namespace Portable_Server 00023 { 00024 RequestProcessingStrategy::RequestProcessingStrategy (void) 00025 : poa_ (0) 00026 { 00027 } 00028 00029 void 00030 RequestProcessingStrategy::strategy_init( 00031 TAO_Root_POA *poa, 00032 ::PortableServer::ServantRetentionPolicyValue sr_value) 00033 { 00034 poa_ = poa; 00035 sr_value_ = sr_value; 00036 } 00037 00038 void 00039 RequestProcessingStrategy::strategy_init(TAO_Root_POA *poa) 00040 { 00041 poa_ = poa; 00042 } 00043 00044 void 00045 RequestProcessingStrategy::strategy_cleanup(void) 00046 { 00047 poa_ = 0; 00048 } 00049 00050 ::PortableServer::ServantRetentionPolicyValue 00051 RequestProcessingStrategy::sr_type() const 00052 { 00053 return sr_value_; 00054 } 00055 } 00056 } 00057 00058 TAO_END_VERSIONED_NAMESPACE_DECL