abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garrett Rooney" <roo...@electricjellyfish.net>
Subject Re: Using a custom factory
Date Mon, 09 Oct 2006 12:43:15 GMT
On 10/9/06, Ugo Cei <ugo.cei@gmail.com> wrote:
> Semi-replying to myself:
>
>  From this code:
>
>
> public class FOMParserOptions
>    extends AbstractParserOptions {
>
>    protected void initFactory() {
>      factory = new FOMFactory();
>    }
> ...
> }
>
> It seems like I have to pass some options to the parse method,
> otherwise default options will always give me a FOMFactory,
> regardless of what system properties I set.
>
> Is that correct?

Well, it seems correct as far as describing what the code does now,
but I'm not sure it's really "right" in an abstract sort of sense.
This might be the kind of thing we want to change, or if not change at
the very least document...

-garrett

Mime
View raw message