[jdom-interest] Re: Fast or Safe?

Trebor A. Rude trebor at bwn.net
Thu Aug 31 21:31:30 PDT 2000

On Thu, 31 Aug 2000, Gerardo Horvilleur wrote:
>"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

	It's quite reasonable, my only concern is that it probably breaks all 
existing code, which we may not want to do. Fortunately we're in the 
pre-1.0 stage, and it's easier to justify the large change. Brett? Jason? 
What do you think?

Trebor A. Rude
trebor at bwn.net
Registered Linux User #89308

More information about the jdom-interest mailing list