TAO::Portable_Server::Adapter_Activator Class Reference

#include <Adapter_Activator.h>

Inheritance diagram for TAO::Portable_Server::Adapter_Activator:

Inheritance graph
[legend]
Collaboration diagram for TAO::Portable_Server::Adapter_Activator:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Adapter_Activator (PortableServer::POAManager_ptr poa_manager)
CORBA::Boolean unknown_adapter (PortableServer::POA_ptr parent, const char *name)

Protected Attributes

PortableServer::POAManager_var poa_manager_
 POA Manager.


Constructor & Destructor Documentation

TAO::Portable_Server::Adapter_Activator::Adapter_Activator PortableServer::POAManager_ptr  poa_manager  ) 
 

Definition at line 22 of file Adapter_Activator.cpp.

References PortableServer::POAManager_ptr.

00024       : poa_manager_ (PortableServer::POAManager::_duplicate (pm))
00025     {
00026     }


Member Function Documentation

CORBA::Boolean TAO::Portable_Server::Adapter_Activator::unknown_adapter PortableServer::POA_ptr  parent,
const char *  name
 

Definition at line 29 of file Adapter_Activator.cpp.

References PortableServer::POA::create_POA(), PortableServer::POA_ptr, and PortableServer::POA_var.

00031     {
00032       // Default policies
00033       CORBA::PolicyList default_policies;
00034 
00035       // This assumes that the lock on the parent is recursive
00036       PortableServer::POA_var child =
00037         parent->create_POA (name,
00038                             this->poa_manager_.in (),
00039                             default_policies);
00040 
00041       try
00042         {
00043           child->the_activator (this);
00044         }
00045       catch (const ::CORBA::Exception&)
00046         {
00047           (void) child->destroy (1, 1);
00048 
00049           return false;
00050         }
00051 
00052       // Finally everything is fine
00053       return true;
00054     }


Member Data Documentation

PortableServer::POAManager_var TAO::Portable_Server::Adapter_Activator::poa_manager_ [protected]
 

POA Manager.

Definition at line 52 of file Adapter_Activator.h.


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:28:45 2008 for TAO_PortableServer by doxygen 1.3.6