|
|||||||||
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.MessageViewFactoryRegistry
public final class MessageViewFactoryRegistry
The message view factory registry.
The view factory registry, a singleton class, stores references to configured message view factories. It loads and instantiates view factories and serves them out by name and id.
Method Summary | |
---|---|
static MessageViewFactoryRegistry |
getInstance()
Get the singleton view factory registry instance. |
MessageViewFactory |
getMessageViewFactory(short factoryId)
Get a view factory. |
Set<String> |
getMessageViewFactoryNames(Set<String> factories)
Get the names of the set of registered factories. |
void |
registerMessageViewFactory(MessageViewFactory factory)
Register a message view factory |
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 MessageViewFactoryRegistry getInstance()
public final void registerMessageViewFactory(MessageViewFactory factory)
factory
- The message factory to registerThis method adds the supplied message view factory to the view factory registry. It will replace a factory of the same id if one exists.
public final MessageViewFactory getMessageViewFactory(short factoryId)
factoryId
- The factory's unique identifier.public final Set<String> getMessageViewFactoryNames(Set<String> factories)
factories
- The set to add the factory names to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |