Tips and tricks for using JiBX
start > issues-2.0 > runtime

runtime

Created by dsosnoski. Last edited by dsosnoski, 146 days ago. Viewed 1,997 times. #2
  1. Eliminate the returned MarshallingContext from most of the calls. This looks good in source code, but creates a mess at the bytecode level without adding any functionality.
  2. Find a better alternative to the namespace indexes used for marshalling? That's difficult, but especially with the issues involved in modular binding compiles a change is needed.
  3. Don't return the unmarshalled object from the internal methods. Instead, just store the object as soon as it's created since it should never be changed. The only exception is for array unmarshalling, where a wrapper object can be used to hold the "current" array reference, and that wrapper can be the context object passed to the internal methods.
no comments
snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt