[Bioperl-l] Bio::Factory

Jason Stajich jason@chg.mc.duke.edu
Wed, 31 Jan 2001 08:56:21 -0500 (EST)


On Wed, 31 Jan 2001, Hilmar Lapp wrote:

> In an attempt to address revisit/finalization of the
> SeqAnalysisParser/SeqFeatureProducer stuff, I suggest to accept
> the design change Ewan proposed couple of weeks ago:
> 
> ------ <quote on>
> Why not have
> 
>   Bio::SeqAnalysisParserFactoryI
> 
>   $parser = $factory->create_parser(-fh => \*FILE);
> 
>   Bio::SeqAnalyisParserI
> 
>   while( $next_feature = $parser->next_feature ) {
> 
>   }
> 
> same number of functions defined. Twice the number of interfaces,
> but
> these are the interfaces I would argue we want.
> 
> An implementation could implement ParserFactoryI and ParserI in
> the
> same module if so wished.
> ------ <quote off>
> 
> For the factory interface I propose to open a new directory
> Bio::Factory, first to avoid cluttering of other directories, and
> second because there are many places in BioPerl that can
> eventually take advantage of a factory design (basically, wherever
> hard-coded object creation occurs, e.g. in SeqIO::* etc), so that
> directory hopefully won't stay empty for long.
> 
> Any objections? If not, I'll give it a go soon.

Great idea and it is a good place to put these things and can help cleanup
some of the clutter for sure. 

> 
> 	Hilmar
> 
> -- 
> -----------------------------------------------------------------
> Hilmar Lapp                                email: hlapp@gmx.net
> GNF, San Diego, Ca. 92122                  phone: +1 858 812 1757
> -----------------------------------------------------------------
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l
> 

Jason Stajich
jason@chg.mc.duke.edu
Center for Human Genetics
Duke University Medical Center 
http://www.chg.duke.edu/