> 
> One alternative is what Haggar calls "two-stage construction."  Pieces
of
> the construction process that can cause errors are moved into a
separate
> routine.  The user constructs an instance, then calls the "finishing"
> routine and checks the return code or exception from that secondary
> routine.  Yuk.
> 
 
I quickly looked at the API for JDOM earlier today after seeing the
first post regarding this question.  This API, for the most part, uses
this "two-stage construction".  (Except for a couple of Classes where
file I/O is used.)

Someone else should take a look and confirm this - I could be wrong.

I don't consider the JDOM API to be yucky at all.  




____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to