Through the use of the WSIF and EJB technologies, the toolkit uses the
CHA Formatter Service to physically separate the application
and the formatters. For a Branch Transformation Toolkit application, the CHA
Formatter Service works in this way:
- When a toolkit entity needs a conversion between a context (or
a data element) and a string presentation, it calls the formatter facade for
the formatters.
- The facade then passes the format request to the CHA Formatter Service
through a CHA Formatter Service proxy.
- The CHA Formatter Service then instantiates the appropriate formatter
object.
- The CHA Formatter Service passes the context, the data element, or the
string presentation to the formatter object instance.
- The formatter object instance does the conversion.