Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #include "tao/PI/PolicyFactory_Loader.h"
00015 #include "tao/PI/PolicyFactory_Registry.h"
00016
00017 #include "tao/ORB.h"
00018 #include "tao/debug.h"
00019
00020 ACE_RCSID (PI,
00021 PolicyFactory_Loader,
00022 "$Id: PolicyFactory_Loader.cpp 84281 2009-01-30 15:01:17Z wotte $")
00023
00024 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00025
00026 TAO::PolicyFactory_Registry_Adapter*
00027 TAO_PolicyFactory_Loader::create (void)
00028 {
00029 TAO::PolicyFactory_Registry_Adapter* obj = 0;
00030 ACE_NEW_RETURN (obj,
00031 TAO_PolicyFactory_Registry,
00032 0);
00033 return obj;
00034 }
00035
00036 int
00037 TAO_PolicyFactory_Loader::Initializer (void)
00038 {
00039 return ACE_Service_Config::process_directive (ace_svc_desc_TAO_PolicyFactory_Loader);
00040 }
00041
00042
00043 ACE_STATIC_SVC_DEFINE (TAO_PolicyFactory_Loader,
00044 ACE_TEXT ("PolicyFactory_Loader"),
00045 ACE_SVC_OBJ_T,
00046 &ACE_SVC_NAME (TAO_PolicyFactory_Loader),
00047 ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ,
00048 0)
00049 ACE_FACTORY_DEFINE (TAO_PI, TAO_PolicyFactory_Loader)
00050
00051 TAO_END_VERSIONED_NAMESPACE_DECL