summaryrefslogtreecommitdiff
path: root/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.inl
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/CSD_Framework/CSD_Strategy_Proxy.inl')
-rw-r--r--TAO/tao/CSD_Framework/CSD_Strategy_Proxy.inl104
1 files changed, 0 insertions, 104 deletions
diff --git a/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.inl b/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.inl
deleted file mode 100644
index 320fd6dca8f..00000000000
--- a/TAO/tao/CSD_Framework/CSD_Strategy_Proxy.inl
+++ /dev/null
@@ -1,104 +0,0 @@
-// -*- C++ -*-
-// $Id$
-
-
-ACE_INLINE
-TAO::CSD::Strategy_Proxy::Strategy_Proxy()
- : strategy_impl_(0)
-{
-}
-
-
-ACE_INLINE
-TAO::CSD::Strategy_Proxy::~Strategy_Proxy()
-{
- strategy_impl_ = 0; // don't delete it! The var will do it for us.
-}
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Proxy::dispatch_request
- (TAO_ServerRequest& server_request,
- TAO::Portable_Server::Servant_Upcall& upcall
- ACE_ENV_ARG_DECL)
-{
-
- if (this->strategy_impl_ == 0)
- {
- // This is the "default" strategy implementation.
- upcall.servant()->_dispatch(server_request,
- (void*)&upcall
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
- else
- {
- // Delegate to the custom strategy object.
- this->strategy_impl_->dispatch_request(server_request,
- upcall
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-
-ACE_INLINE
-bool
-TAO::CSD::Strategy_Proxy::poa_activated_event()
-{
- // Delegate to the custom strategy object (or return true if this proxy
- // is not holding a custom strategy).
- return (this->strategy_impl_ == 0) ? true
- : this->strategy_impl_->poa_activated_event();
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Proxy::poa_deactivated_event()
-{
- // We only need to do something if this proxy holds a custom strategy.
- if (this->strategy_impl_)
- {
- // Delegate to the custom strategy object.
- this->strategy_impl_->poa_deactivated_event();
- }
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Proxy::servant_activated_event
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL)
-{
- // We only need to do something if this proxy holds a custom strategy.
- if (this->strategy_impl_)
- {
- // Delegate to the custom strategy object.
- this->strategy_impl_->servant_activated_event(servant,
- oid
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-}
-
-
-ACE_INLINE
-void
-TAO::CSD::Strategy_Proxy::servant_deactivated_event
- (PortableServer::Servant servant,
- const PortableServer::ObjectId& oid
- ACE_ENV_ARG_DECL)
-{
- // We only need to do something if this proxy holds a custom strategy.
- if (this->strategy_impl_)
- {
- // Delegate to the custom strategy object.
- this->strategy_impl_->servant_deactivated_event(servant,
- oid
- ACE_ENV_ARG_PARAMETER);
- ACE_CHECK;
- }
-}