abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James M Snell <jasn...@gmail.com>
Subject Re: Using a custom factory
Date Mon, 09 Oct 2006 14:12:18 GMT
This was one of the things that I initially knew what I wanted to do but
never got around to quite making it elegant.  The way you're doing it
below is currently *the* way of doing it but it definitely can be improved.

- James

Ugo Cei wrote:
> Still talking to myself... looks like this code:
> 
>         Abdera abdera = new Abdera();
>         Parser parser = abdera.getParser();
>         ParserOptions options = parser.getDefaultParserOptions();
>         options.setFactory(new RSSFOMFactory(abdera));
>         Document<Feed> doc = parser.parse(in, null, options);
> 
> does what I expect, which is nice, but I still wonder which one is the
> right way to extend Abdera.
> 
>     Ugo
> 
> 
> 
> --Ugo Cei
> Blog: http://agylen.com/
> Open Source Zone: http://oszone.org/
> Evil or Not?: http://evilornot.info/
> Company: http://www.sourcesense.com/
> 
> 
> 

Mime
View raw message