activemq::connector::ConnectorFactoryMap Class Reference

#include <ConnectorFactoryMap.h>

List of all members.

Public Member Functions

void registerConnectorFactory (const std::string &name, ConnectorFactory *factory)
void unregisterConnectorFactory (const std::string &name)
ConnectorFactorylookup (const std::string &name)
std::size_t getFactoryNames (std::vector< std::string > &factoryList)

Static Public Member Functions

static ConnectorFactoryMapgetInstance (void)

Private Member Functions

 ConnectorFactoryMap ()
virtual ~ConnectorFactoryMap ()
 ConnectorFactoryMap (const ConnectorFactoryMap &factoryMap)
ConnectorFactoryMap operator= (const ConnectorFactoryMap &factoryMap)

Private Attributes

std::map< std::string, ConnectorFactory * > factoryMap


Detailed Description

Lookup Map for Connector Factories. Use the Connector name to find the associated factory. This class does not take ownership of the stored factories, they must be deallocated somewhere.


Constructor & Destructor Documentation

activemq::connector::ConnectorFactoryMap::ConnectorFactoryMap  )  [inline, private]
 

virtual activemq::connector::ConnectorFactoryMap::~ConnectorFactoryMap  )  [inline, private, virtual]
 

activemq::connector::ConnectorFactoryMap::ConnectorFactoryMap const ConnectorFactoryMap factoryMap  )  [private]
 


Member Function Documentation

std::size_t ConnectorFactoryMap::getFactoryNames std::vector< std::string > &  factoryList  ) 
 

Fetch a list of factory names that this Map contains

Parameters:
factoryList vector object to receive the list
Returns:
count of factories.

ConnectorFactoryMap * ConnectorFactoryMap::getInstance void   )  [static]
 

Gets a singleton instance of this class.

ConnectorFactory * ConnectorFactoryMap::lookup const std::string &  name  ) 
 

Lookup the named factory in the Map

Parameters:
name the factory name to lookup
Returns:
the factory assciated with the name, or NULL

ConnectorFactoryMap activemq::connector::ConnectorFactoryMap::operator= const ConnectorFactoryMap factoryMap  )  [private]
 

void ConnectorFactoryMap::registerConnectorFactory const std::string &  name,
ConnectorFactory factory
 

Registers a new Connector Factory with this map

Parameters:
name to associate the factory with
factory to store.

void ConnectorFactoryMap::unregisterConnectorFactory const std::string &  name  ) 
 

Unregisters a Connector Factory with this map

Parameters:
name of the factory to remove


Member Data Documentation

std::map< std::string, ConnectorFactory* > activemq::connector::ConnectorFactoryMap::factoryMap [private]
 


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