[Bioperl-l] Bio::Factory

Ewan Birney birney@ebi.ac.uk
Wed, 31 Jan 2001 09:32:43 +0000 (GMT)


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.

This sounds really good....

Definitely needed/wanted...



> 
> 	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
> 

-----------------------------------------------------------------
Ewan Birney. Mobile: +44 (0)7970 151230, Work: +44 1223 494420
<birney@ebi.ac.uk>. 
-----------------------------------------------------------------