decaf::internal::security::ServiceRegistry Class Reference

Serves as a registry for all the Providers for services using the naming format of "ServiceName.Algorithm". More...

#include <src/main/decaf/internal/security/ServiceRegistry.h>

Public Member Functions

 ServiceRegistry ()
virtual ~ServiceRegistry ()
void addProvider (const decaf::security::Provider *provider)
 Adds the Provider into the registry so that its services can be looked up by the registry clients.
decaf::security::ProviderServicegetService (const std::string &name)
 Attempts to locate a ProviderService implementation for the named service and return a new instance of the service.

Detailed Description

Serves as a registry for all the Providers for services using the naming format of "ServiceName.Algorithm".


Constructor & Destructor Documentation

decaf::internal::security::ServiceRegistry::ServiceRegistry (  ) 
virtual decaf::internal::security::ServiceRegistry::~ServiceRegistry (  )  [virtual]

Member Function Documentation

void decaf::internal::security::ServiceRegistry::addProvider ( const decaf::security::Provider provider  ) 

Adds the Provider into the registry so that its services can be looked up by the registry clients.

Parameters:
provider The instance of the Provider which is to be added to the registry
decaf::security::ProviderService* decaf::internal::security::ServiceRegistry::getService ( const std::string &  name  ) 

Attempts to locate a ProviderService implementation for the named service and return a new instance of the service.

If no service exists for the given name this method returns NULL.

Parameters:
name The name of the service to find, format is "serviceName.algorithmName"
Returns:
a caller owned pointer to a new ProviderService for the named service.

The documentation for this class was generated from the following file:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1