[jdom-interest] Should I convert to/from org.jdom.Document

Alex Rosen arosen at silverstream.com
Tue Jan 22 07:29:25 PST 2002


"To avoid recreation of the Cylinder objects every time getCyliders() is
called, one could cache cylinderList in the Engine class. However, that
would mean that cylinderList and the equivalent element list in the DOM
would have to be kept in sync. Seems to be more trouble than it is worth!"

Yup, it certainly does get more complicated with child objects, but I have
used it on small to medium sized systems with success. I guess that would be
an argument in favor of the conversion technique on more complicated
systems.

Alex




More information about the jdom-interest mailing list