00001
00002
00003 #include "tao/PortableServer/POA_Current_Factory.h"
00004 #include "tao/PortableServer/POA_Current.h"
00005 #include "tao/ORB_Core.h"
00006
00007 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00008
00009 CORBA::Object_ptr
00010 TAO_POA_Current_Factory::create_object (CORBA::ORB_ptr,
00011 int,
00012 ACE_TCHAR * [])
00013 {
00014 TAO::Portable_Server::POA_Current* adapter = 0;
00015 ACE_NEW_RETURN (adapter,
00016 TAO::Portable_Server::POA_Current (),
00017 0);
00018 return adapter;
00019 }
00020
00021 TAO_END_VERSIONED_NAMESPACE_DECL
00022
00023 ACE_FACTORY_DEFINE (TAO_PortableServer, TAO_POA_Current_Factory)
00024 ACE_STATIC_SVC_DEFINE (TAO_POA_Current_Factory,
00025 ACE_TEXT ("TAO_POA_Current_Factory"),
00026 ACE_SVC_OBJ_T,
00027 &ACE_SVC_NAME (TAO_POA_Current_Factory),
00028 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00029 0)
00030