POEx::WorkerPool::Role::WorkerPool::Worker::GutsLoader - Implementation role of the Guts loader
version 1.101610
is: ro, isa: ArrayRef[ClassName], required: 1
These are the job classes should be loaded during init using Class::MOP::load_class
is: ro, isa: CodeRef, lazy_build: 1
This holds the coderef that will be executed first to do any intitialization prior to building the Guts session
This holds the coderef that is responsible for stopping the forked POE::Kernel singleton
This holds the coderef that builds the actual Guts
This holds the coderef that calls run() on POE::Kernel to kickstart everything
loader has the coderef that is used when building the POE::Wheel::Run instance inside of Worker's child_wheel attribute. The coderef is actually an aggregate of init, preamble, main, and prologue.
_build_init builds the coderef used for initialization of the job classes in the child process.
_build_preamble builds the coderef that calls stop on POE::Kernel by default.
_build_main builds the coderef that instantiates the Guts instance without any arguments. If Guts has other roles applied at compile time that require extra arguments, this method will need to be advised to provide those arguments to the constructor.
_build_prologue builds the coderef that calls run() on POE::Kernel by default.
_build_loader builds the coderef that is passed to the POE::Wheel::Run constructor inside of Worker's child_wheel attribute builder. It creates a closure around lexical references to init, preamble, main, and prologue, that executes said coderefs in that order.
Nicholas R. Perez <nperez@cpan.org>
This software is copyright (c) 2010 by Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install POEx::WorkerPool, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POEx::WorkerPool
CPAN shell
perl -MCPAN -e shell install POEx::WorkerPool
For more information on module installation, please visit the detailed CPAN module installation guide.