Sync README and README.md
[bioperl-live.git] / Bio / Factory / ObjectFactoryI.pm
blob758cae1234f0d30f3b9f71ed35f88bc928e81a7c
2 # BioPerl module for Bio::Factory::ObjectFactoryI
4 # Please direct questions and support issues to <bioperl-l@bioperl.org>
6 # Cared for by Jason Stajich <jason@bioperl.org>
8 # Copyright Jason Stajich
10 # You may distribute this module under the same terms as perl itself
12 # POD documentation - main docs before the code
14 =head1 NAME
16 Bio::Factory::ObjectFactoryI - A General object creator factory
18 =head1 SYNOPSIS
20 # see the implementations of this interface for details but
21 # basically
23 my $obj = $factory->create(%args);
25 =head1 DESCRIPTION
27 This interface is the basic structure for a factory which creates new
28 objects. In this case it is up to the implementer to check arguments
29 and initialize whatever new object the implementing class is designed for.
31 =head1 FEEDBACK
33 =head2 Mailing Lists
35 User feedback is an integral part of the evolution of this and other
36 Bioperl modules. Send your comments and suggestions preferably to
37 the Bioperl mailing list. Your participation is much appreciated.
39 bioperl-l@bioperl.org - General discussion
40 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
42 =head2 Support
44 Please direct usage questions or support issues to the mailing list:
46 I<bioperl-l@bioperl.org>
48 rather than to the module maintainer directly. Many experienced and
49 reponsive experts will be able look at the problem and quickly
50 address it. Please include a thorough description of the problem
51 with code and data examples if at all possible.
53 =head2 Reporting Bugs
55 Report bugs to the Bioperl bug tracking system to help us keep track
56 of the bugs and their resolution. Bug reports can be submitted via the
57 web:
59 https://github.com/bioperl/bioperl-live/issues
61 =head1 AUTHOR - Jason Stajich
63 Email jason@bioperl.org
65 =head1 APPENDIX
67 The rest of the documentation details each of the object methods.
68 Internal methods are usually preceded with a _
70 =cut
73 # Let the code begin...
76 package Bio::Factory::ObjectFactoryI;
77 use strict;
78 use Carp;
80 use base qw(Bio::Root::RootI);
82 =head2 create
84 Title : create
85 Usage : $factory->create(%args)
86 Function: Create a new object
87 Returns : a new object
88 Args : hash of initialization parameters
91 =cut
93 sub create{
94 my ($self,@args) = @_;
95 $self->throw_not_implemented();
98 =head2 create_object
100 Title : create_object
101 Usage : $obj = $factory->create_object(%args)
102 Function: Create a new object.
104 This is supposed to supercede create(). Right now it only delegates
105 to create().
106 Returns : a new object
107 Args : hash of initialization parameters
110 =cut
112 sub create_object{
113 my ($self,@args) = @_;
114 return $self->create(@args);