| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Beam::Wire::Event::BuildService; |
|
2
|
|
|
|
|
|
|
our $VERSION = '1.025'; |
|
3
|
|
|
|
|
|
|
# ABSTRACT: Event fired when building a new service |
|
4
|
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
|
6
|
|
|
|
|
|
|
#pod |
|
7
|
|
|
|
|
|
|
#pod my $wire = Beam::Wire->new( ... ); |
|
8
|
|
|
|
|
|
|
#pod $wire->on( build_service => sub { |
|
9
|
|
|
|
|
|
|
#pod my ( $event ) = @_; |
|
10
|
|
|
|
|
|
|
#pod print "Built service named " . $event->service_name; |
|
11
|
|
|
|
|
|
|
#pod } ); |
|
12
|
|
|
|
|
|
|
#pod |
|
13
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
|
14
|
|
|
|
|
|
|
#pod |
|
15
|
|
|
|
|
|
|
#pod This event is fired when a service is built. See |
|
16
|
|
|
|
|
|
|
#pod L. |
|
17
|
|
|
|
|
|
|
#pod |
|
18
|
|
|
|
|
|
|
#pod =head1 ATTRIBUTES |
|
19
|
|
|
|
|
|
|
#pod |
|
20
|
|
|
|
|
|
|
#pod This class inherits from L and adds the following attributes. |
|
21
|
|
|
|
|
|
|
#pod |
|
22
|
|
|
|
|
|
|
#pod =cut |
|
23
|
|
|
|
|
|
|
|
|
24
|
24
|
|
|
24
|
|
188
|
use Moo; |
|
|
24
|
|
|
|
|
58
|
|
|
|
24
|
|
|
|
|
175
|
|
|
25
|
24
|
|
|
24
|
|
8870
|
use Types::Standard qw( Any Str ); |
|
|
24
|
|
|
|
|
69
|
|
|
|
24
|
|
|
|
|
237
|
|
|
26
|
|
|
|
|
|
|
extends 'Beam::Event'; |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
#pod =attr emitter |
|
29
|
|
|
|
|
|
|
#pod |
|
30
|
|
|
|
|
|
|
#pod The container that is listening for the event. |
|
31
|
|
|
|
|
|
|
#pod |
|
32
|
|
|
|
|
|
|
#pod =attr service_name |
|
33
|
|
|
|
|
|
|
#pod |
|
34
|
|
|
|
|
|
|
#pod The name of the service being built. |
|
35
|
|
|
|
|
|
|
#pod |
|
36
|
|
|
|
|
|
|
#pod =cut |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
has service_name => ( |
|
39
|
|
|
|
|
|
|
is => 'ro', |
|
40
|
|
|
|
|
|
|
isa => Str, |
|
41
|
|
|
|
|
|
|
); |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
#pod =attr service |
|
44
|
|
|
|
|
|
|
#pod |
|
45
|
|
|
|
|
|
|
#pod The newly-built service. |
|
46
|
|
|
|
|
|
|
#pod |
|
47
|
|
|
|
|
|
|
#pod =cut |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
has service => ( |
|
50
|
|
|
|
|
|
|
is => 'ro', |
|
51
|
|
|
|
|
|
|
isa => Any, |
|
52
|
|
|
|
|
|
|
); |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1; |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
__END__ |