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::collocation_resolver_name(), TAO_ORB_Parameters::disable_rt_collocation_resolver(), TAO_ORB_Core::orb_params(), ACE_Service_Config::process_directive(), TAO_ORB_Core::server_factory(), 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       orb_core->orb_params ()->collocation_resolver_name ("RT_Collocation_Resolver");
00027       ACE_Service_Config::process_directive (
00028           ace_svc_desc_TAO_RT_Collocation_Resolver);
00029     }
00030 
00031   TAO_Object_Adapter *object_adapter = 0;
00032   ACE_NEW_RETURN (object_adapter,
00033                   TAO_Object_Adapter (orb_core->server_factory ()->
00034                                         active_object_map_creation_parameters (),
00035                                       *orb_core),
00036                   0);
00037 
00038   // Create and register the RT servant dispatcher.
00039   TAO_RT_Servant_Dispatcher *rt_servant_dispatcher = 0;
00040   ACE_NEW_RETURN (rt_servant_dispatcher,
00041                   TAO_RT_Servant_Dispatcher,
00042                   0);
00043   object_adapter->servant_dispatcher (rt_servant_dispatcher);
00044 
00045   // Create and add the RT policy validator.
00046   TAO_POA_RT_Policy_Validator *rt_validator = 0;
00047   ACE_NEW_RETURN (rt_validator,
00048                   TAO_POA_RT_Policy_Validator (*orb_core),
00049                   0);
00050   object_adapter->validator ().add_validator (rt_validator);
00051 
00052   return object_adapter;
00053 }


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:31:21 2008 for TAO_RTPortableServer by doxygen 1.3.6