Defines the CSD version Object Adapter which overrides default dispatch implementation. More...
#include <CSD_Object_Adapter.h>
Public Member Functions | |
TAO_CSD_Object_Adapter (const TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters &creation_parameters, TAO_ORB_Core &orb_core) | |
Constructor. | |
virtual | ~TAO_CSD_Object_Adapter (void) |
Destructor. | |
virtual void | do_dispatch (TAO_ServerRequest &req, TAO::Portable_Server::Servant_Upcall &upcall) |
Defines the CSD version Object Adapter which overrides default dispatch implementation.
This class will be used as a facade for the CSD POAs in a server
Definition at line 36 of file CSD_Object_Adapter.h.
TAO_CSD_Object_Adapter::TAO_CSD_Object_Adapter | ( | const TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters & | creation_parameters, | |
TAO_ORB_Core & | orb_core | |||
) |
Constructor.
Definition at line 13 of file CSD_Object_Adapter.cpp.
: TAO_Object_Adapter (creation_parameters, orb_core) { }
TAO_CSD_Object_Adapter::~TAO_CSD_Object_Adapter | ( | void | ) | [virtual] |
void TAO_CSD_Object_Adapter::do_dispatch | ( | TAO_ServerRequest & | req, | |
TAO::Portable_Server::Servant_Upcall & | upcall | |||
) | [virtual] |
Hand the request to the Service_Dispatching_Strategy_Proxy for dispatching.
Reimplemented from TAO_Object_Adapter.
Definition at line 26 of file CSD_Object_Adapter.cpp.
{ TAO_Root_POA& poa = upcall.poa (); TAO_CSD_POA* csd_poa = dynamic_cast<TAO_CSD_POA*> (&poa); if (csd_poa == 0) { throw ::CORBA::BAD_PARAM (); } TAO::CSD::Strategy_Proxy& proxy = csd_poa->servant_dispatching_strategy_proxy (); proxy.dispatch_request (req, upcall); }