[jdom-interest] Adding a DocumentListener interface

David W. Smiley dsmiley at mitre.org
Tue Jul 25 15:04:00 PDT 2000

	I have an idea that will be efficient and might make everyone happy. 
Basically have a JDomNodeFactory abstract class / interface.  There
would be a simple implementation that does nothing special, simply
return obvious implementations that hold info.  There would also be an
implementation that verified against a schema/dtd.  Anf finally there
would be a way that client code can specify their implementation.  To
make your own listening nodes, you would have a JDomNodeFactory that
extended one of the two above and then add the listening code.  A
slightly different way of doing all this would employ a
JDomNodeFactoryAdapter class that all client-specified implementations
must extend.  The adapter essentially wraps the "true" internal
JDomNodeFactoryAdapter.  That implementation would be a little more
	So is this too much too late?  I have a feeling so; but it's probably
how I'd do it if given the chance.

-- David Smiley

More information about the jdom-interest mailing list