[jdom-interest] Re: Element factories for Builders [eg]

Josep Miquel Garcia Rodriguez JMGarcia at ccs.es
Thu Apr 5 01:47:32 PDT 2001


Hi all,
Works for me and i like it. I have subclassing Element and overriding some
methods so I can know when there are changes.

-----Original Message-----
From: Jason Hunter [mailto:jhunter at collab.net]
Sent: jueves, 05 de abril de 2001 6:28
To: Dave Churchville
Cc: jdom-interest at jdom.org
Subject: Re: [jdom-interest] Re: Element factories for Builders [eg]


Dave Churchville wrote:
> 
> What's the current state/thinking on Element Factories in JDOM Builders
> (SAXBuilder in particular)?
> 
> This, in my opinion, would eliminate (or at least help with) most of the
> remaining debate points, since you really could say "use a factory" in
> reponse to:
> 
> - I'd like to store more data on an Element (custom application data)
> - I'd like to add a listener model to Elements, etc.
> - I'd like to add controversial methods to my Element (i.e.
> getChildIgnoringNamespaces("foo"))
> - I'd like to override certain methods for my own app for efficiency, etc.
> 
> I know its in the TODO, and some people have done partial?
implementations,
> but how close is it to being part of official JDOM?  I'd be happy to help
> out here if needed.

The ability to customize SAXBuilder to build subclasses of the standard
JDOM objects using a factory model is (as you saw) slated to go in to
JDOM.  If you want to help, you can try out and review the submittal
sent in by Ken.  The fact no one thus far has said, "Works for me and I
like it" has kept me from popping it to the top of the integration
stack.

> P.S. We are using JDOM and are generally very happy with it.

Glad to hear it!  :-)

-jh-
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com



More information about the jdom-interest mailing list