#include <Adapter_Activator.h>
Collaboration diagram for TAO::Portable_Server::Adapter_Activator:
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. |
Definition at line 40 of file Adapter_Activator.h.
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 }
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 }