activemq-cpp-3.9.0
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. More...
 
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. More...
 

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
providerThe 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
nameThe 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: