Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / CSD_Framework / CSD_Object_Adapter.cpp
blobb94de8c38e72d379c418f7708085a7b14d3055d9
1 // -*- C++ -*-
2 #include "tao/CSD_Framework/CSD_Object_Adapter.h"
3 #include "tao/CSD_Framework/CSD_Strategy_Proxy.h"
4 #include "tao/CSD_Framework/CSD_POA.h"
6 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
8 TAO_CSD_Object_Adapter::TAO_CSD_Object_Adapter (
9 const TAO_Server_Strategy_Factory::Active_Object_Map_Creation_Parameters &creation_parameters,
10 TAO_ORB_Core &orb_core)
11 : TAO_Object_Adapter (creation_parameters, orb_core)
15 TAO_CSD_Object_Adapter::~TAO_CSD_Object_Adapter ()
19 void
20 TAO_CSD_Object_Adapter::do_dispatch (
21 TAO_ServerRequest& req,
22 TAO::Portable_Server::Servant_Upcall& upcall)
24 TAO_Root_POA& poa = upcall.poa ();
25 TAO_CSD_POA* csd_poa = dynamic_cast<TAO_CSD_POA*> (&poa);
27 if (csd_poa == 0)
29 throw ::CORBA::BAD_PARAM ();
32 TAO::CSD::Strategy_Proxy& proxy
33 = csd_poa->servant_dispatching_strategy_proxy ();
34 proxy.dispatch_request (req, upcall);
37 TAO_END_VERSIONED_NAMESPACE_DECL