2 //=============================================================================
4 * @file DLL_Resident_ORB_Initializer.cpp
6 * @author Dale Wilson <wilsond@ociweb.com>
8 //=============================================================================
10 #include "tao/PI/DLL_Resident_ORB_Initializer.h"
12 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
14 PortableInterceptor::DLL_Resident_ORB_Initializer::DLL_Resident_ORB_Initializer (
15 PortableInterceptor::ORBInitializer_ptr initializer
,
16 const ACE_TCHAR
* dll_name
)
17 : initializer_(PortableInterceptor::ORBInitializer::_duplicate(initializer
))
20 if (TAO_debug_level
> 8)
22 TAOLIB_DEBUG ((LM_DEBUG
,
23 ACE_TEXT ("TAO (%P|%t) - Construct DLL_Resident_ORB_Initializer for @%@\n"),
24 initializer_
.operator->()
29 PortableInterceptor::DLL_Resident_ORB_Initializer::~DLL_Resident_ORB_Initializer ()
31 if (TAO_debug_level
> 8)
33 TAOLIB_DEBUG ((LM_DEBUG
,
34 ACE_TEXT ("TAO (%P|%t) - Destruct DLL_Resident_ORB_Initializer for @%@\n"),
35 initializer_
.operator->()
38 // let the var release the object first
39 initializer_
= PortableInterceptor::ORBInitializer::_nil();
40 // then the ACE_DLL can release the dll on the way out.
45 PortableInterceptor::DLL_Resident_ORB_Initializer::pre_init (
46 ::PortableInterceptor::ORBInitInfo_ptr info
)
48 initializer_
->pre_init (info
);
52 PortableInterceptor::DLL_Resident_ORB_Initializer::post_init (
53 ::PortableInterceptor::ORBInitInfo_ptr info
)
55 initializer_
->post_init (info
);
59 TAO_END_VERSIONED_NAMESPACE_DECL