#include <EndpointPolicy.h>


Public Member Functions | |
| virtual int | init (int argc, ACE_TCHAR *[]) |
| Initialize the Endpoint Policy loader hooks. | |
Static Public Member Functions | |
| static int | static_init (void) |
| Used to force the initialization of the ORB code. | |
Definition at line 30 of file EndpointPolicy.h.
| int TAO_EndpointPolicy_Initializer::init | ( | int | argc, | |
| ACE_TCHAR * | [] | |||
| ) | [virtual] |
Initialize the Endpoint Policy loader hooks.
Register the EndpointPolicy ORBInitializer.
Reimplemented from ACE_Shared_Object.
Definition at line 24 of file EndpointPolicy.cpp.
{
PortableInterceptor::ORBInitializer_var orb_initializer;
try
{
PortableInterceptor::ORBInitializer_ptr temp_orb_initializer =
PortableInterceptor::ORBInitializer::_nil ();
/// Register the EndpointPolicy ORBInitializer.
ACE_NEW_THROW_EX (temp_orb_initializer,
TAO_EndpointPolicy_ORBInitializer,
CORBA::NO_MEMORY (
CORBA::SystemException::_tao_minor_code (
TAO::VMCID,
ENOMEM),
CORBA::COMPLETED_NO));
orb_initializer = temp_orb_initializer;
PortableInterceptor::register_orb_initializer (orb_initializer.in ());
}
catch (const ::CORBA::Exception& ex)
{
if (TAO_debug_level > 0)
{
ex._tao_print_exception ("Caught exception:");
}
return -1;
}
ACE_Service_Config::process_directive
(ace_svc_desc_TAO_Endpoint_Acceptor_Filter_Factory,1); // force replacement
return 0;
}
| int TAO_EndpointPolicy_Initializer::static_init | ( | void | ) | [static] |
Used to force the initialization of the ORB code.
Definition at line 17 of file EndpointPolicy.cpp.
{
ACE_Service_Config::process_directive (ace_svc_desc_TAO_EndpointPolicy_Initializer);
return 0;
}
1.7.0