-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add container = property for loading and routing beam containers
- Loading branch information
1 parent
f8e4cf8
commit ec28ca6
Showing
7 changed files
with
98 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
dyninject_g: | ||
class: inc::My::NeoDynDepsLite | ||
args: | ||
letter: G | ||
dyninject_m: | ||
$class: inc::My::NeoDynDepsLite | ||
letter: M | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
use 5.006; | ||
use strict; | ||
use warnings; | ||
|
||
package inc::My::NeoDynDepsLite; | ||
|
||
# ABSTRACT: A Lightweight injector thingy | ||
|
||
# AUTHORITY | ||
|
||
# Look ma, no Dzil! no Moose! Nothing! | ||
|
||
sub new { return bless { ref $_[1] ? %{ $_[1] } : @_[ 1 .. $#_ ] }, $_[0] } | ||
|
||
# This is obviously a rediculously tiny and simple big of code | ||
# in comparison with the normal shenanigans. | ||
sub inject_prelude { | ||
my ( $self, $event ) = @_; | ||
my $text = $event->prelude; | ||
my $letter = $self->{letter} || 'H'; | ||
$text .= <<"EOF"; | ||
print "This message brought to you by the letter $letter"; | ||
EOF | ||
$event->prelude($text); | ||
return; | ||
} | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters