|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.neeve.root.RootObject
com.neeve.sma.SmaObject
com.neeve.sma.MessagingProviderRegistry
public final class MessagingProviderRegistry
The messaging provider registry.
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.
| Method Summary | |
|---|---|
static MessagingProviderRegistry |
getInstance()
Get the singleton provider registry instance. |
MessagingProvider |
getProvider(String name)
Get a provider. |
void |
registerProvider(MessagingProvider provider)
Register a messaging 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 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||