[jdom-interest] Architecture advice sought (long)

Sasha Bilton Sasha.Bilton at alisonassociates.com
Fri Jul 27 07:13:59 PDT 2001


> From: Kyle F. Downey [mailto:kdowney at amberarcher.com]
>
> Personally, I would avoid doing what you're describing on general
> principles. What you want are objects that represent your 
> problem domain.
> Your problem domain is not, conceptually, a specialization of the XML
> parsing problem domain. A CreatureElement isn't a "better" 
> Element--it's a
> use of an Element that uses it via inheritance for convenience only.

I think your right, looking back I was getting over excited about clever and
useless class factories. Losing the ability to extends my own base class is
fatal to the model. The only problem I have now with switching to a "uses-a"
class is that I have to create sub element holders manually.



More information about the jdom-interest mailing list