00001 // -*- C++ -*- 00002 //============================================================================= 00003 /** 00004 * @file DLL_Resident_ORB_Initializer.cpp 00005 * 00006 * $Id: DLL_Resident_ORB_Initializer.cpp 81912 2008-06-11 12:27:40Z sma $ 00007 * 00008 * @author Dale Wilson <wilsond@ociweb.com> 00009 */ 00010 //============================================================================= 00011 00012 #include "tao/PI/DLL_Resident_ORB_Initializer.h" 00013 00014 ACE_RCSID (TAO, 00015 DLL_Resident_ORBInitializer, 00016 "$Id: DLL_Resident_ORB_Initializer.cpp 81912 2008-06-11 12:27:40Z sma $") 00017 00018 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00019 00020 PortableInterceptor::DLL_Resident_ORB_Initializer::DLL_Resident_ORB_Initializer ( 00021 PortableInterceptor::ORBInitializer_ptr initializer, 00022 const ACE_TCHAR * dll_name) 00023 : initializer_(PortableInterceptor::ORBInitializer::_duplicate(initializer)) 00024 , dll_(dll_name) 00025 { 00026 if (TAO_debug_level > 8) 00027 { 00028 ACE_DEBUG ((LM_DEBUG, 00029 ACE_TEXT ("construct DLL_Resident_ORB_Initializer for @%@\n"), 00030 initializer_.operator->() 00031 )); 00032 } 00033 } 00034 00035 PortableInterceptor::DLL_Resident_ORB_Initializer::~DLL_Resident_ORB_Initializer () 00036 { 00037 if (TAO_debug_level > 8) 00038 { 00039 ACE_DEBUG ((LM_DEBUG, 00040 ACE_TEXT ("Destruct DLL_Resident_ORB_Initializer for @%@\n"), 00041 initializer_.operator->() 00042 )); 00043 } 00044 // let the var release the object first 00045 initializer_ = PortableInterceptor::ORBInitializer::_nil(); 00046 // then the ACE_DLL can release the dll on the way out. 00047 } 00048 00049 00050 void 00051 PortableInterceptor::DLL_Resident_ORB_Initializer::pre_init ( 00052 ::PortableInterceptor::ORBInitInfo_ptr info 00053 ) 00054 { 00055 initializer_->pre_init (info); 00056 } 00057 00058 void 00059 PortableInterceptor::DLL_Resident_ORB_Initializer::post_init ( 00060 ::PortableInterceptor::ORBInitInfo_ptr info 00061 ) 00062 { 00063 initializer_->post_init (info); 00064 } 00065 00066 00067 TAO_END_VERSIONED_NAMESPACE_DECL