On Wed, Mar 20, 2002 at 07:49:25AM -0500, bob mcwhirter wrote:
>
> We could always take a page from JDBC.
> 
> To 'register' your Navigator.
> 
>       Class.forName( "org.cheese.CheeseNavigator" );
> 

Horrible, horrible, horrible.  This is why statics should be banned.
So much is happening behind the scenes there, it's scary.

If you want to have a static registry, at least do what JDBC should
have done:

        XPath.register(new CheeseNavigator());

but if you're going to do that once, you may as well do it every time:

        new XPath(cheese, new CheeseNavigator());

or:

        new CheeseXPath(cheese)

which is what we already almost have, and what I proposed.

I vote "nay" to a navigator registry, and "ecch" to anything remotely
resembling the JDBC API.

 - A

-- 
Alex Chaffee                       mailto:[EMAIL PROTECTED]
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/

_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest

Reply via email to