activemq::transport::TransportFactoryMapRegistrar Class Reference

#include <TransportFactoryMapRegistrar.h>

List of all members.

Public Member Functions

 TransportFactoryMapRegistrar (const std::string &name, TransportFactory *factory, bool manageLifetime=true)
virtual ~TransportFactoryMapRegistrar (void)
virtual TransportFactorygetFactory (void)

Private Attributes

std::string name
TransportFactoryfactory
bool manageLifetime


Detailed Description

Registers the passed in factory into the factory map, this class can manage the lifetime of the registered factory (default behaviour).


Constructor & Destructor Documentation

activemq::transport::TransportFactoryMapRegistrar::TransportFactoryMapRegistrar const std::string &  name,
TransportFactory factory,
bool  manageLifetime = true
[inline]
 

Constructor for this class

Parameters:
name of the factory to register
factory responsible for creating the transport
manageLifetime boolean indicating if this object manages the lifetime of the factory that is being registered.

virtual activemq::transport::TransportFactoryMapRegistrar::~TransportFactoryMapRegistrar void   )  [inline, virtual]
 


Member Function Documentation

virtual TransportFactory& activemq::transport::TransportFactoryMapRegistrar::getFactory void   )  [inline, virtual]
 

Return a reference to the factory object that is contained in this registrar.

Returns:
TransportFactory reference


Member Data Documentation

TransportFactory* activemq::transport::TransportFactoryMapRegistrar::factory [private]
 

bool activemq::transport::TransportFactoryMapRegistrar::manageLifetime [private]
 

std::string activemq::transport::TransportFactoryMapRegistrar::name [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Aug 3 18:03:33 2006 for activemq-cpp by  doxygen 1.4.5