TAO::Portable_Server::Adapter_Activator Class Reference

#include <Adapter_Activator.h>

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.

Detailed Description

Definition at line 40 of file Adapter_Activator.h.


Constructor & Destructor Documentation

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

Definition at line 22 of file Adapter_Activator.cpp.

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.

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, this->poa_manager_.in (), default_policies);
00038 
00039       try
00040         {
00041           child->the_activator (this);
00042         }
00043       catch (const ::CORBA::Exception&)
00044         {
00045           (void) child->destroy (1, 1);
00046 
00047           return false;
00048         }
00049 
00050       // Finally everything is fine
00051       return true;
00052     }


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 Tue Feb 2 17:41:38 2010 for TAO_PortableServer by  doxygen 1.4.7