00001 // -*- C++ -*- 00002 // 00003 // $Id: Active_Policy_Strategies.inl 80395 2008-01-08 10:16:50Z vzykov $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 namespace TAO 00008 { 00009 namespace Portable_Server 00010 { 00011 ACE_INLINE 00012 ThreadStrategy* 00013 Active_Policy_Strategies::thread_strategy (void) const 00014 { 00015 return this->thread_strategy_; 00016 } 00017 00018 ACE_INLINE 00019 RequestProcessingStrategy* 00020 Active_Policy_Strategies::request_processing_strategy (void) const 00021 { 00022 return this->request_processing_strategy_; 00023 } 00024 00025 ACE_INLINE 00026 IdAssignmentStrategy * 00027 Active_Policy_Strategies::id_assignment_strategy (void) const 00028 { 00029 return this->id_assignment_strategy_; 00030 } 00031 00032 ACE_INLINE 00033 IdUniquenessStrategy * 00034 Active_Policy_Strategies::id_uniqueness_strategy (void) const 00035 { 00036 return this->id_uniqueness_strategy_; 00037 } 00038 00039 ACE_INLINE 00040 LifespanStrategy* 00041 Active_Policy_Strategies::lifespan_strategy (void) const 00042 { 00043 return this->lifespan_strategy_; 00044 } 00045 00046 ACE_INLINE 00047 ImplicitActivationStrategy* 00048 Active_Policy_Strategies::implicit_activation_strategy (void) const 00049 { 00050 return this->implicit_activation_strategy_; 00051 } 00052 00053 ACE_INLINE 00054 ServantRetentionStrategy* 00055 Active_Policy_Strategies::servant_retention_strategy (void) const 00056 { 00057 return this->servant_retention_strategy_; 00058 } 00059 00060 ACE_INLINE 00061 Active_Policy_Strategies_Cleanup_Guard 00062 ::Active_Policy_Strategies_Cleanup_Guard (Active_Policy_Strategies *p) 00063 : ptr_ (p) 00064 { 00065 } 00066 00067 ACE_INLINE 00068 Active_Policy_Strategies_Cleanup_Guard 00069 ::~Active_Policy_Strategies_Cleanup_Guard (void) 00070 { 00071 if (this->ptr_) 00072 { 00073 this->ptr_->cleanup (); 00074 } 00075 } 00076 00077 ACE_INLINE 00078 Active_Policy_Strategies * 00079 Active_Policy_Strategies_Cleanup_Guard::_retn (void) 00080 { 00081 Active_Policy_Strategies *temp = this->ptr_; 00082 this->ptr_ = 0; 00083 return temp; 00084 } 00085 } 00086 } 00087 00088 TAO_END_VERSIONED_NAMESPACE_DECL