Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / CodecFactory / CodecFactory.cpp
blob6491cca8fd3811914301e5fdfcd6abb10d46affb
1 // =================================================================
2 /**
3 * @file CodecFactory.cpp
5 * @author Johnny Willemsen <jwillemsen@remedy.nl>
6 */
7 // =================================================================
9 #include "tao/CodecFactory/CodecFactory.h"
10 #include "tao/CodecFactory/CodecFactory_impl.h"
12 #include "tao/ORB.h"
13 #include "tao/debug.h"
15 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
17 CORBA::Object_ptr
18 TAO_CodecFactory_Loader::create_object (CORBA::ORB_ptr orb, int, ACE_TCHAR *[])
20 CORBA::Object_ptr obj = CORBA::Object_ptr ();
21 ACE_NEW_RETURN (obj,
22 TAO_CodecFactory (orb->orb_core ()),
23 CORBA::Object::_nil ());
24 return obj;
27 int
28 TAO_CodecFactory_Loader::Initializer ()
30 return ACE_Service_Config::process_directive (ace_svc_desc_TAO_CodecFactory_Loader);
33 ACE_STATIC_SVC_DEFINE (TAO_CodecFactory_Loader,
34 ACE_TEXT ("CodecFactory_Loader"),
35 ACE_SVC_OBJ_T,
36 &ACE_SVC_NAME (TAO_CodecFactory_Loader),
37 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
39 ACE_FACTORY_DEFINE (TAO_CODECFACTORY, TAO_CodecFactory_Loader)
41 TAO_END_VERSIONED_NAMESPACE_DECL