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 ()
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
);
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