|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sape.smfw.messagingengine.MessageHandlerFactory
A factory class that creates MessageHandlers for the supplied messages.
Field Summary | |
private ClassLoader |
classLoader
ClassLoader to use for creating message handlers |
private static org.apache.commons.logging.Log |
log
|
private StringMap |
messageToHandlerMap
Maps Message class names to MessageHandler class names. |
Constructor Summary | |
MessageHandlerFactory(StringMap messageToHandlerMap,
ClassLoader classLoader)
Constructs a MessageHandlerFactory. |
Method Summary | |
MessageHandler |
createMessageHandler(Message message)
Creates a MessageHandler for the supplied message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final org.apache.commons.logging.Log log
private StringMap messageToHandlerMap
private ClassLoader classLoader
Constructor Detail |
public MessageHandlerFactory(StringMap messageToHandlerMap, ClassLoader classLoader)
messageToHandlerMap
- maps Message class names to MessageHandler class namesclassLoader
- ClassLoader to use for creating MessageHandlers. If this
parameter is set to null, then the classloader of the current instance
is used.Method Detail |
public MessageHandler createMessageHandler(Message message)
message
- the message for which a MessageHandler is needed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |