[jdom-interest] DOMBuilder with customized adapter
Jason Hunter
jhunter at collab.net
Fri Feb 16 08:42:33 PST 2001
> So I have created my own Adapter class extending the
> org.jdom.adopters.AbstractAdapter this to be able to adapte my parser to
> suit my need.
> But now to the problem, the org.jdom.input.DOMBuilder rellay completely on
> reflection of the adapter class, I want to be able to customize it for
> different reasons. This would normally not be a problem if the
> org.jdom.input.DOMBuilder.buildTree() method would not have been private!!!
> I really don't want to implement my own DOMBuilder (i.e. basically cut and
> past the buildTree method from DOMBuilder...).
> Is there a way to maybe not relay so much on reflection since most of the
> values are hardcoded into the class anyway.
Why aren't you using SAXBuilder?
BTW, we use reflection so we can compile JDOM without having to have
*every supported parser* available in the classpath at compile time.
-jh-
More information about the jdom-interest
mailing list