[jdom-interest] Re: Fast or Safe?

Gerardo Horvilleur mago at mail.internet.com.mx
Thu Aug 31 17:21:26 PDT 2000

"Trebor A. Rude" wrote:
 >         Hmm, if we do that, we could create a sigleton factory class to return
> you the proper implementation of the interface based on some settings it's
> got stored. At the very least, the programmer would be forced to manually
> create objects of the correct implementation. Of course, either way would
> probably break every existing JDOM program out there, as the "Element foo
> = new Element("foo");" idiom would break. Even though we could, with the
> claim "the API is pre-1.0", I'm not sure many people would be very happy
> if we did that. Design wise, it sounds fine though.

It would be something like: Element foo = factory.newElement("foo")
which seems reasonable enough to me. It is not too different from
what we have right now and it makes it possible to have multiple


Gerardo Horvilleur
mago at mail.internet.com.mx

More information about the jdom-interest mailing list