1
# $Id: ObjectFactoryI.pm,v 1.3 2002/10/22 07:45:14 lapp Exp $
3
# BioPerl module for Bio::Factory::ObjectFactoryI
5
# Cared for by Jason Stajich <jason@bioperl.org>
7
# Copyright Jason Stajich
9
# You may distribute this module under the same terms as perl itself
11
# POD documentation - main docs before the code
15
Bio::Factory::ObjectFactoryI - A General object creator factory
19
# see the implementations of this interface for details but
22
my $obj = $factory->create(%args);
26
This interface is the basic structure for a factory which creates new
27
objects. In this case it is up to the implementer to check arguments
28
and initialize whatever new object the implementing class is designed for.
34
User feedback is an integral part of the evolution of this and other
35
Bioperl modules. Send your comments and suggestions preferably to
36
the Bioperl mailing list. Your participation is much appreciated.
38
bioperl-l@bioperl.org - General discussion
39
http://bioperl.org/MailList.shtml - About the mailing lists
43
Report bugs to the Bioperl bug tracking system to help us keep track
44
of the bugs and their resolution. Bug reports can be submitted via
47
bioperl-bugs@bioperl.org
48
http://bugzilla.bioperl.org/
50
=head1 AUTHOR - Jason Stajich
52
Email jason@bioperl.org
54
Describe contact details here
58
Additional contributors names and emails here
62
The rest of the documentation details each of the object methods.
63
Internal methods are usually preceded with a _
68
# Let the code begin...
71
package Bio::Factory::ObjectFactoryI;
77
@ISA = qw( Bio::Root::RootI );
82
Usage : $factory->create(%args)
83
Function: Create a new object
84
Returns : a new object
85
Args : hash of initialization parameters
91
my ($self,@args) = @_;
92
$self->throw_not_implemented();
98
Usage : $obj = $factory->create_object(%args)
99
Function: Create a new object.
101
This is supposed to supercede create(). Right now it only delegates
103
Returns : a new object
104
Args : hash of initialization parameters
110
my ($self,@args) = @_;
111
return $self->create(@args);