Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] static Builder.create methods instead of constructors?

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] static Builder.create methods instead of constructors?
  • Date: Thu, 12 Aug 2004 20:41:33 -0400

I just don't see the problem here. The only reason you would ever care about this is if for some strange reason you're creating thousands and thousands of Builder objects, and that's not a plausible use case because builders are reusable. If you want to parse documents in parallel in separate threads, give every thread gets its own builder. Problem solved.

You seem to be proposing a very complex solution to a very easily solved problem. Is there something more complicated here I'm not seeing?
--

Elliotte Rusty Harold
elharo AT metalab.unc.edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml
http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA




Archive powered by MHonArc 2.6.24.

Top of Page