|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.conversation.AbleMessageTransformFactory
The AbleMessageTransformFactory is an ABLE-specific implementation of the MessageTransform factory interface.
This factory contains a user-configured table that maps MessageDescription objects onto MessageTransform classes. It uses the table to create MessageTransform objects upon request. It caches the transforms it has created.
The ABLE-specific features consist of the exception messages and the logging and trace-logging mechanisms. The latter are implemented as calls to the appropriate methods on an AbleBean designated as this AbleMessageTransformFactory object's "owner".
Constructor Summary | |
---|---|
AbleMessageTransformFactory()
Constructs an AbleMessageTransformFactory object with a null "owner". |
|
AbleMessageTransformFactory(AbleBean newOwner)
Constructs an AbleMessageTransformFactory object with the given "owner". |
Method Summary | |
---|---|
void |
addTransform(MessageDescription desc,
java.lang.Class transformClass)
Adds the given transform class to the table of transform classes, keyed under the given message description. |
void |
clear()
Removes all entries from the table of transform classes. |
MessageTransform |
getDefaultTransform()
Returns the default transform. |
MessageTransform |
getTransform(MessageDescription desc)
Returns a MessageTransform matching the given message description, or else returns the default transform if no match is found. |
void |
removeTransform(MessageDescription desc)
Removes the entry matching the given description from the table of transform classes. |
void |
setDefaultTransform(MessageTransform tf)
Sets the default transform. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbleMessageTransformFactory()
public AbleMessageTransformFactory(AbleBean newOwner)
newOwner
- The owner.Method Detail |
public MessageTransform getDefaultTransform()
The default transform is a MessageTransform instance returned by
getTransform()
if the given message description doesn't
match anything in the table of transform classes.
null
if no default has been set.public void setDefaultTransform(MessageTransform tf)
The default transform is a MessageTransform instance returned by
getTransform()
if the given message description doesn't
match anything in the table of transform classes.
tf
- The new default transform.public void addTransform(MessageDescription desc, java.lang.Class transformClass)
desc
- The MessageDescription key for the transform class.transformClass
- The transform class.public void removeTransform(MessageDescription desc)
desc
- The message description to match against, in finding the entry to remove.public void clear()
public MessageTransform getTransform(MessageDescription desc)
getTransform
in interface MessageTransformFactory
MessageTransformFactory.getTransform(MessageDescription)
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |