Public Member Functions | Private Attributes

TAO_CSD_POA Class Reference

#include <CSD_POA.h>

Inheritance diagram for TAO_CSD_POA:
Inheritance graph
[legend]
Collaboration diagram for TAO_CSD_POA:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_CSD_POA (const String &name, PortableServer::POAManager_ptr poa_manager, const TAO_POA_Policy_Set &policies, TAO_Root_POA *parent, ACE_Lock &lock, TAO_SYNCH_MUTEX &thread_lock, TAO_ORB_Core &orb_core, TAO_Object_Adapter *object_adapter)
virtual ~TAO_CSD_POA (void)
virtual void set_csd_strategy (::CSD_Framework::Strategy_ptr s)
 Pass the Strategy object reference to the CSD poa.
virtual void poa_activated_hook ()
 Hook - The POA has been (or is being) activated.
virtual void poa_deactivated_hook ()
 Hook - The POA has been deactivated.
virtual void servant_activated_hook (PortableServer::Servant servant, const PortableServer::ObjectId &oid)
 Hook - A servant has been activated.
virtual void servant_deactivated_hook (PortableServer::Servant servant, const PortableServer::ObjectId &oid)
 Hook - A servant has been deactivated.
TAO_Root_POAnew_POA (const String &name, PortableServer::POAManager_ptr poa_manager, const TAO_POA_Policy_Set &policies, TAO_Root_POA *parent, ACE_Lock &lock, TAO_SYNCH_MUTEX &thread_lock, TAO_ORB_Core &orb_core, TAO_Object_Adapter *object_adapter)
 Method for creating new CSD POA.
TAO::CSD::Strategy_Proxy & servant_dispatching_strategy_proxy (void) const
 Servant Dispatching Strategy proxy accessor.

Private Attributes

TAO::CSD::Strategy_Proxy * sds_proxy_

Detailed Description

Implementation of the CSD_Framework::POA interface.

Definition at line 36 of file CSD_POA.h.


Constructor & Destructor Documentation

TAO_CSD_POA::TAO_CSD_POA ( const String name,
PortableServer::POAManager_ptr  poa_manager,
const TAO_POA_Policy_Set policies,
TAO_Root_POA parent,
ACE_Lock lock,
TAO_SYNCH_MUTEX &  thread_lock,
TAO_ORB_Core orb_core,
TAO_Object_Adapter object_adapter 
)

Definition at line 20 of file CSD_POA.cpp.

: TAO_Regular_POA (name,
                   poa_manager,
                   policies,
                   parent,
                   lock,
                   thread_lock,
                   orb_core,
                   object_adapter)
{
  ACE_NEW_THROW_EX (this->sds_proxy_,
                    TAO::CSD::Strategy_Proxy (),
                    CORBA::NO_MEMORY ());
}

TAO_CSD_POA::~TAO_CSD_POA ( void   )  [virtual]

Definition at line 44 of file CSD_POA.cpp.

{
  delete this->sds_proxy_;
}


Member Function Documentation

TAO_Root_POA * TAO_CSD_POA::new_POA ( const String name,
PortableServer::POAManager_ptr  poa_manager,
const TAO_POA_Policy_Set policies,
TAO_Root_POA parent,
ACE_Lock lock,
TAO_SYNCH_MUTEX &  thread_lock,
TAO_ORB_Core orb_core,
TAO_Object_Adapter object_adapter 
) [virtual]

Method for creating new CSD POA.

Reimplemented from TAO_Root_POA.

Definition at line 59 of file CSD_POA.cpp.

{
  TAO_CSD_POA *poa = 0;

  ACE_NEW_THROW_EX (poa,
                    TAO_CSD_POA (name,
                             poa_manager,
                             policies,
                             parent,
                             lock,
                             thread_lock,
                             orb_core,
                             object_adapter
                            ),
                    CORBA::NO_MEMORY ());

  TAO_CSD_Strategy_Repository *repo =
    ACE_Dynamic_Service<TAO_CSD_Strategy_Repository>::instance ("TAO_CSD_Strategy_Repository");

  CSD_Framework::Strategy_var strategy = repo->find (name);

  if (! ::CORBA::is_nil (strategy.in ()))
    {
      poa->set_csd_strategy (strategy.in ());
    }

  return poa;
}

void TAO_CSD_POA::poa_activated_hook (  )  [virtual]

Hook - The POA has been (or is being) activated.

Reimplemented from TAO_Root_POA.

Definition at line 95 of file CSD_POA.cpp.

{
  this->sds_proxy_->poa_activated_event (this->orb_core_);
}

void TAO_CSD_POA::poa_deactivated_hook (  )  [virtual]

Hook - The POA has been deactivated.

Reimplemented from TAO_Root_POA.

Definition at line 100 of file CSD_POA.cpp.

{
  this->sds_proxy_->poa_deactivated_event ();
}

void TAO_CSD_POA::servant_activated_hook ( PortableServer::Servant  servant,
const PortableServer::ObjectId oid 
) [virtual]

Hook - A servant has been activated.

Reimplemented from TAO_Root_POA.

Definition at line 105 of file CSD_POA.cpp.

{
  this->sds_proxy_->servant_activated_event (servant, oid);
}

void TAO_CSD_POA::servant_deactivated_hook ( PortableServer::Servant  servant,
const PortableServer::ObjectId oid 
) [virtual]

Hook - A servant has been deactivated.

Reimplemented from TAO_Root_POA.

Definition at line 111 of file CSD_POA.cpp.

{
  this->sds_proxy_->servant_deactivated_event (servant, oid);
}

TAO::CSD::Strategy_Proxy & TAO_CSD_POA::servant_dispatching_strategy_proxy ( void   )  const

Servant Dispatching Strategy proxy accessor.

Definition at line 9 of file CSD_POA.inl.

{
  return *sds_proxy_;
}

void TAO_CSD_POA::set_csd_strategy ( ::CSD_Framework::Strategy_ptr  s  )  [virtual]

Pass the Strategy object reference to the CSD poa.

Definition at line 49 of file CSD_POA.cpp.

{
  if (CORBA::is_nil (strategy))
    {
      throw ::CORBA::BAD_PARAM ();
    }
  this->sds_proxy_->custom_strategy (strategy);
}


Member Data Documentation

TAO::CSD::Strategy_Proxy* TAO_CSD_POA::sds_proxy_ [private]

Definition at line 88 of file CSD_POA.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines