public final class MessagingProviderRegistry extends SmaObject
The provider registry, a singleton class, stores references to configured
providers. Providers are either programatically registered with the
registry (using registerProvider(com.neeve.sma.MessagingProvider) or are loaded on demand from
the default configuration repository.
| Modifier and Type | Method and Description |
|---|---|
static MessagingProviderRegistry |
getInstance()
Get the singleton provider registry instance.
|
MessagingProvider |
getProvider(String name)
Get a provider.
|
void |
registerProvider(MessagingProvider provider)
Register a messaging provider.
|
getChecked, getThreaded, getTracer, setChecked, setTracerpublic static final MessagingProviderRegistry getInstance()
public final void registerProvider(MessagingProvider provider) throws SmaException
provider - The provider to register.SmaException - Thrown in case an exception is encountered during
this method.This method programatically registers a messaging provider in the system. Providers registered using this mechanism will augment the providers loaded from the configuration repository.
public final MessagingProvider getProvider(String name) throws SmaException
name - The name of the provider.SmaException - Thrown in case an exception is encountered during
this method.This method returns a reference to a created provider. In case the provider is not in the registry, the method attempts to load the provider from the default configuration repository.
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.