[jdom-interest] Factories

Elliotte Rusty Harold elharo at metalab.unc.edu
Sat Feb 28 13:34:45 PST 2004


At 2:06 PM -0600 2/28/04, Bradley S. Huffman wrote:

>I'm agree with Elliotte in that it would be nice to have it hidden,
>unfortunately Java's package system doesn't allow it.


Why doesn't it? XOM hides its equivalent of this class. I think all 
you'd need to do is make it the default factory for when the user 
does not choose a factory rather than relying on the user to pass it 
in, which is a good idea anyway. Given that this class is reasonably 
safe when used with a parser, I don't see any reason not to make it 
the default choice for SAXBuilder.
-- 

   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



More information about the jdom-interest mailing list