|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.root.RootObject
com.neeve.discovery.DiscoveryObject
com.neeve.discovery.DiscoveryProviderRegistry
public final class DiscoveryProviderRegistry
The provider registry.
The provider registry, a singleton class, stores references to configured discovery providers. Providers are created on demand and stored in the registry.
Method Summary | |
---|---|
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. |
Methods inherited from class com.neeve.root.RootObject |
---|
getChecked, getThreaded, getTracer, setChecked, setTracer |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |