public final class DiscoveryProviderRegistry extends DiscoveryObject
The provider registry, a singleton class, stores references to configured discovery providers. Providers are created on demand and stored in the registry.
Modifier and Type | Method and Description |
---|---|
static DiscoveryProviderRegistry |
getInstance()
Get the singleton provider registry instance.
|
IDiscoveryProvider |
getProvider(String name)
Get a discovery provider.
|
void |
registerProvider(IDiscoveryProvider provider)
Register a discovery provider.
|
getChecked, getThreaded, getTracer, setChecked, setTracer
public static final DiscoveryProviderRegistry getInstance()
public final void registerProvider(IDiscoveryProvider provider) throws EDiscoveryException
This method programatically registers a messaging provider in the system. Providers registered using this mechanism will augment the providers loaded from the configuration repository.
provider
- The provider to register.EDiscoveryException
- Thrown in case an exception is encountered
during this method.public final IDiscoveryProvider getProvider(String name) throws EDiscoveryException
This method returns a reference to a created provider. In case the provider is in the registry, the method attempts to create the provider using provider metadata from the configuration area
name
- The name of the provider.EDiscoveryException
- Thrown in case an exception is encountered
during this method.Copyright © 2019 Neeve Research, LLC. All Rights Reserved.