[Bioperl-l] Bio::Factory

Hilmar Lapp hlapp@gmx.net
Wed, 31 Jan 2001 01:08:46 -0800

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


  $parser = $factory->create_parser(-fh => \*FILE);


  while( $next_feature = $parser->next_feature ) {


same number of functions defined. Twice the number of interfaces,
these are the interfaces I would argue we want.

An implementation could implement ParserFactoryI and ParserI in
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.


Hilmar Lapp                                email: hlapp@gmx.net
GNF, San Diego, Ca. 92122                  phone: +1 858 812 1757