2 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
5 TAO::CSD::Strategy_Proxy::Strategy_Proxy()
11 TAO::CSD::Strategy_Proxy::~Strategy_Proxy()
13 strategy_impl_ = 0; // don't delete it! The var will do it for us.
18 TAO::CSD::Strategy_Proxy::dispatch_request
19 (TAO_ServerRequest& server_request,
20 TAO::Portable_Server::Servant_Upcall& upcall)
23 if (this->strategy_impl_ == 0)
25 // This is the "default" strategy implementation.
26 upcall.servant()->_dispatch(server_request, &upcall);
30 // Delegate to the custom strategy object.
31 this->strategy_impl_->dispatch_request(server_request, upcall);
37 TAO::CSD::Strategy_Proxy::poa_activated_event(TAO_ORB_Core& orb_core)
39 // Delegate to the custom strategy object (or return true if this proxy
40 // is not holding a custom strategy).
41 return (this->strategy_impl_ == 0) ? true
42 : this->strategy_impl_->poa_activated_event(orb_core);
48 TAO::CSD::Strategy_Proxy::poa_deactivated_event()
50 // We only need to do something if this proxy holds a custom strategy.
51 if (this->strategy_impl_)
53 // Delegate to the custom strategy object.
54 this->strategy_impl_->poa_deactivated_event();
60 TAO::CSD::Strategy_Proxy::servant_activated_event
61 (PortableServer::Servant servant,
62 const PortableServer::ObjectId& oid)
64 // We only need to do something if this proxy holds a custom strategy.
65 if (this->strategy_impl_)
67 // Delegate to the custom strategy object.
68 this->strategy_impl_->servant_activated_event(servant, oid);
74 TAO::CSD::Strategy_Proxy::servant_deactivated_event
75 (PortableServer::Servant servant,
76 const PortableServer::ObjectId& oid)
78 // We only need to do something if this proxy holds a custom strategy.
79 if (this->strategy_impl_)
81 // Delegate to the custom strategy object.
82 this->strategy_impl_->servant_deactivated_event(servant, oid);
86 TAO_END_VERSIONED_NAMESPACE_DECL