com.ibm.able.conversation
Class MessageFormFactory
java.lang.Object
|
+--com.ibm.able.conversation.MessageFormFactory
- All Implemented Interfaces:
- java.io.Serializable
- public class MessageFormFactory
- extends java.lang.Object
- implements java.io.Serializable
This is a factory of MessageForm instances.
OLD VERSION -- TO BE DELETED
Replaced by com.ibm.able.conversation.AbleMessageTransformFactory
It keeps an (optional) table of Class objects, which it uses to create instances of
MessageForm classes. First it searches the table for an entry with a given name, and
then, if there was no such entry, passes the name to the class loader.
In our current CPH classes, we just use the class loader, so we don't need this factory
at all. It becomes useful when we start permitting third-party middleware vendors to
supply their own implementations of publicly-named MessageForm classes, i.e., to override
the class-loader.
- See Also:
- Serialized Form
Method Summary |
static void |
addLocalTableEntry(java.lang.String newKey,
java.lang.Class newClass)
|
static MessageForm |
createMessageForm(java.lang.String encoding,
java.lang.Object schema)
Create an instance of a MessageForm appropriate to the given key, using the args to
configure it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addLocalTableEntry
public static void addLocalTableEntry(java.lang.String newKey,
java.lang.Class newClass)
createMessageForm
public static MessageForm createMessageForm(java.lang.String encoding,
java.lang.Object schema)
- Create an instance of a MessageForm appropriate to the given key, using the args to
configure it.
TO DO: A good way to pass configuration arguments in to the new instance.
(C) Copyright IBM Corporation 1999, 2003