POE::Component::Basement 0.01 review

Download
by rbytes.net on

POE::Component::Basement provides Class::Std and base POE component functionality. SYNOPSIS package POE::MyComponent; #

License: Perl Artistic License
File size: 16K
Developer: Robert Sedlacek
0 stars award from rbytes.net

POE::Component::Basement provides Class::Std and base POE component functionality.

SYNOPSIS

package POE::MyComponent;

# use as base
use base qw/ POE::Component::Basement /;

# where the initializations happen (see Class::Std)
sub BUILD { ... }

# see also Class::Std and Class::Data::Inheritable also
# for accessor creation etc.

# define states
sub state_one : State( :inline< _start > ) { ... }
sub state_two : State( :object< foo > ) { ... }
sub state_three : State( :package< bar > ) { ... }

# combined
sub state_multi : State( :inline< foobar > :package< snafoo > ) { ... }
...

# chained events
sub first : State( :object< foo > :chained< bar > ) { ... }
sub second : State( :object< bar > ) { ... }
...

# calling in a row
sub first : State( :object< foo > :next< bar > ) { ... }
sub second : State( :object< bar > ) { ... }
...

# usage
my $comp = POE::MyComponent->new ({

# single alias or array reference for multiple
aliases => [qw/ mycomp shub_niggurath /],

... # your specific init_arg's.
});

Provides Class::Std and base POE component functionality. This module is still kinda experimental.

Requirements:
Perl

POE::Component::Basement 0.01 keywords