line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Devel::ebug::Wx::Service::Base; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
11087
|
use strict; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
32
|
|
4
|
1
|
|
|
1
|
|
5
|
use base qw(Class::Accessor::Fast); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
152
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
Devel::ebug::Wx::Service::Base - base class for services |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 SYNOPSIS |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
use base qw(Devel::ebug::Wx::Service::Base); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
# it's a subclass of Class::Accessor::Fast |
15
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors( qw(foo moo) ); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# override one or more of the stub methods |
18
|
|
|
|
|
|
|
sub initialize { my( $self, $manager ) = @_; # ... } |
19
|
|
|
|
|
|
|
sub load_configuration { my( $self ) = @_; # ... } |
20
|
|
|
|
|
|
|
sub save_configuration { my( $self ) = @_; # ... } |
21
|
|
|
|
|
|
|
sub finalize { my( $self ) = @_; # ... } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head1 DESCRIPTION |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Useful superclass for all services. |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=cut |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__PACKAGE__->mk_accessors( qw(initialized finalized) ); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# empty base implementations |
32
|
0
|
|
|
0
|
0
|
|
sub initialize { my( $self, $manager ) = @_; } |
33
|
0
|
|
|
0
|
0
|
|
sub load_configuration { my( $self ) = @_; } |
34
|
0
|
|
|
0
|
0
|
|
sub save_configuration { my( $self ) = @_; } |
35
|
0
|
|
|
0
|
0
|
|
sub finalize { my( $self ) = @_; } |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 SEE ALSO |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
L |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=cut |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |