Application::Pipeline 0.1.1 review

Download
by rbytes.net on

Application::Pipeline is a module designed to map methods ( referred to in this role as handlers ) to different phases of an applicat

License: Perl Artistic License
File size: 10K
Developer: Stephen Howard
0 stars award from rbytes.net

Application::Pipeline is a module designed to map methods ( referred to in this role as handlers ) to different phases of an application's life cycle. By assigning methods to different phases of this pipeline, the author can concentrate on the logic for each phase and let the framework manage the application flow. Adopting the same idea as CGI::Application, writing an application with Application::Pipeline is a matter of creating a module that is a subclass of Application::Pipeline.

To build a pipeline application, it is necessary to register methods to run during each phase. This can be done one at a time, with the addHandler method. But Application::Pipeline also looks in the subclass package for the package variable %plan. This hash's keys are the names of the phases of the pipeline. Each key points to an array reference which is a list of the methods to run for that phase. The methods are either the names of the methods to run, or references to the actual methods.

This is not the be-all end-all definition of the pipeline. It is still possible to use addHandler to modify the pipeline, and as explained later, it is possible to take into account %plans defined in superclasses.

Requirements:
Perl

Application::Pipeline 0.1.1 search tags