TAO_RT_Object_Adapter_Factory Class Reference

#include <RT_Object_Adapter_Factory.h>

Inheritance diagram for TAO_RT_Object_Adapter_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_RT_Object_Adapter_Factory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual TAO_Adaptercreate (TAO_ORB_Core *orb_core)
 Create adapter.


Member Function Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Adapter * TAO_RT_Object_Adapter_Factory::create TAO_ORB_Core orb_core  )  [virtual]
 

Create adapter.

Implements TAO_Adapter_Factory.

Definition at line 21 of file RT_Object_Adapter_Factory.cpp.

References ACE_NEW_RETURN, TAO_ORB_Parameters::disable_rt_collocation_resolver(), TAO_ORB_Core::orb_params(), ACE_Service_Config::process_directive(), TAO_ORB_Core::server_factory(), TAO_ORB_Core::set_collocation_resolver(), and TAO_Object_Adapter.

00022 {
00023   if (!orb_core->orb_params ()->disable_rt_collocation_resolver ())
00024     {
00025       // Set the name of the collocation resolver to be RT_Collocation_Resolver.
00026       TAO_ORB_Core::set_collocation_resolver (
00027           "RT_Collocation_Resolver");
00028       ACE_Service_Config::process_directive (
00029           ace_svc_desc_TAO_RT_Collocation_Resolver);
00030     }
00031 
00032   TAO_Object_Adapter *object_adapter = 0;
00033   ACE_NEW_RETURN (object_adapter,
00034                   TAO_Object_Adapter (orb_core->server_factory ()->
00035                                         active_object_map_creation_parameters (),
00036                                       *orb_core),
00037                   0);
00038 
00039   // Create and register the RT servant dispatcher.
00040   TAO_RT_Servant_Dispatcher *rt_servant_dispatcher = 0;
00041   ACE_NEW_RETURN (rt_servant_dispatcher,
00042                   TAO_RT_Servant_Dispatcher,
00043                   0);
00044   object_adapter->servant_dispatcher (rt_servant_dispatcher);
00045 
00046   // Create and add the RT policy validator.
00047   TAO_POA_RT_Policy_Validator *rt_validator = 0;
00048   ACE_NEW_RETURN (rt_validator,
00049                   TAO_POA_RT_Policy_Validator (*orb_core),
00050                   0);
00051   object_adapter->validator ().add_validator (rt_validator);
00052 
00053   return object_adapter;
00054 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:56:22 2006 for TAO_RTPortableServer by doxygen 1.3.6