3 // =================================================================
5 * @file PICurrent_Loader.cpp
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 // =================================================================
11 #include "tao/PI/PICurrent_Loader.h"
13 #if TAO_HAS_INTERCEPTORS == 1
15 #include "tao/PI/PICurrent.h"
18 #include "tao/ORB_Core.h"
19 #include "tao/debug.h"
21 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
24 TAO_PICurrent_Loader::create_object (CORBA::ORB_ptr orb
, int, ACE_TCHAR
*[])
26 CORBA::Object_ptr obj
= CORBA::Object::_nil ();
28 TAO::PICurrent (*orb
->orb_core ()),
29 CORBA::Object::_nil ());
34 ACE_STATIC_SVC_DEFINE (TAO_PICurrent_Loader
,
35 ACE_TEXT ("PICurrent_Loader"),
37 &ACE_SVC_NAME (TAO_PICurrent_Loader
),
38 ACE_Service_Type::DELETE_THIS
| ACE_Service_Type::DELETE_OBJ
,
40 ACE_FACTORY_DEFINE (TAO_PI
, TAO_PICurrent_Loader
)
42 TAO_END_VERSIONED_NAMESPACE_DECL
44 #endif /* TAO_HAS_INTERCEPTORS == 1 */