activemq::connector::ConnectorFactoryMapRegistrar Class Reference

#include <ConnectorFactoryMapRegistrar.h>

List of all members.

Public Member Functions

 ConnectorFactoryMapRegistrar (const std::string &name, ConnectorFactory *factory, bool manageLifetime=true)
virtual ~ConnectorFactoryMapRegistrar (void)
virtual ConnectorFactorygetFactory (void)

Private Attributes

std::string name
ConnectorFactoryfactory
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::connector::ConnectorFactoryMapRegistrar::ConnectorFactoryMapRegistrar const std::string &  name,
ConnectorFactory factory,
bool  manageLifetime = true
[inline]
 

Constructor for this class

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

virtual activemq::connector::ConnectorFactoryMapRegistrar::~ConnectorFactoryMapRegistrar void   )  [inline, virtual]
 


Member Function Documentation

virtual ConnectorFactory& activemq::connector::ConnectorFactoryMapRegistrar::getFactory void   )  [inline, virtual]
 

get a reference to the factory that this class is holding

Returns:
reference to a factory class


Member Data Documentation

ConnectorFactory* activemq::connector::ConnectorFactoryMapRegistrar::factory [private]
 

bool activemq::connector::ConnectorFactoryMapRegistrar::manageLifetime [private]
 

std::string activemq::connector::ConnectorFactoryMapRegistrar::name [private]
 


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