Child pages
  • SAX-like Message Parser

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Wiki Markup
{scrollbar}
We could refactor the existing message parser to use a SAX-like
callback API. The idea is that this would allow applications to
load FIX message data ''directly'' into their domain objects
rather than building an intermediate FIX message object. This
could result in large performance gains and/or increase in
convenience for certain applications.

I'm thinking something like...
{code:java}
public interface FieldHandler {
  void onMessageStart(String message);

  void onField(String tag, String value);

  // ??? - not sure if group callbacks are needed
  void onGroupStart(String tag, String value);
  void onGroupEnd();

  void onMessageEnd();
}
{code}
We'd also need a way for the FIX message formatter to pull
data from any source (instead of just from the current Message
implementation).

This is related to [Custom Message Transformation]