line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# POD documentation - main docs before the code |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
GenOO::TranscriptCollection::Factory - Factory for creating L<GenOO::TranscriptCollection> objects |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 SYNOPSIS |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# It returns the requested factory implementation |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my $implementation = GenOO::TranscriptCollection::Factory->create('Implementation', |
12
|
|
|
|
|
|
|
{ |
13
|
|
|
|
|
|
|
ARGUMENT_FOR_IMPLEMENTATION => undef |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 DESCRIPTION |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
It helps to encapsulate the actual factories that handle the creation of the requested objects |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 EXAMPLES |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
# Create a GTF implementation |
24
|
|
|
|
|
|
|
my $gtf_implementation = GenOO::TranscriptCollection::Factory->create('GTF', |
25
|
|
|
|
|
|
|
{ |
26
|
|
|
|
|
|
|
file => 'sample.gtf' |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=cut |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
# Let the code begin... |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
package GenOO::TranscriptCollection::Factory; |
35
|
|
|
|
|
|
|
$GenOO::TranscriptCollection::Factory::VERSION = '1.5.1'; |
36
|
1
|
|
|
1
|
|
5918
|
use MooseX::AbstractFactory; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
19
|
|
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
# Role that the implementations should implement |
39
|
|
|
|
|
|
|
implementation_does [ qw( GenOO::RegionCollection::Factory::Requires ) ]; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |