Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / CSD_Framework / CSD_Framework_Loader.cpp
blob3090791d1b4e75766be9ea119beb3860f5aff0c3
1 // -*- C++ -*-
2 #include "tao/CSD_Framework/CSD_Framework_Loader.h"
3 #include "tao/CSD_Framework/CSD_Object_Adapter_Factory.h"
4 #include "tao/CSD_Framework/CSD_Strategy_Repository.h"
6 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
8 TAO_CSD_Framework_Loader::TAO_CSD_Framework_Loader ()
9 : initialized_ (false)
13 TAO_CSD_Framework_Loader::~TAO_CSD_Framework_Loader ()
18 int
19 TAO_CSD_Framework_Loader::static_init ()
21 ACE_Service_Config::process_directive (
22 ace_svc_desc_TAO_CSD_Object_Adapter_Factory);
23 ACE_Service_Config::process_directive (
24 ace_svc_desc_TAO_CSD_Strategy_Repository);
25 ACE_Service_Config::process_directive (
26 ace_svc_desc_TAO_CSD_Framework_Loader);
28 return 0;
31 int
32 TAO_CSD_Framework_Loader::init (int, ACE_TCHAR* [])
34 ACE_TRACE ("TAO_CSD_Framework_Loader::init");
36 // Only allow initialization once.
37 if (this->initialized_)
38 return 0;
40 this->initialized_ = true;
42 return 0;
46 /////////////////////////////////////////////////////////////////////
48 ACE_FACTORY_DEFINE (TAO_CSD_FW, TAO_CSD_Framework_Loader)
49 ACE_STATIC_SVC_DEFINE (TAO_CSD_Framework_Loader,
50 ACE_TEXT ("CSD_Framework_Loader"),
51 ACE_SVC_OBJ_T,
52 &ACE_SVC_NAME (TAO_CSD_Framework_Loader),
53 ACE_Service_Type::DELETE_THIS
54 | ACE_Service_Type::DELETE_OBJ,
56 TAO_END_VERSIONED_NAMESPACE_DECL