Application-Pipeline
view release on metacpan or search on metacpan
lib/Application/Pipeline.pm view on Meta::CPAN
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.
=head2 The %plan
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 C<addHandler>
method. But Application::Pipeline also looks in the subclass package for the
package variable C<%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 C<addHandler> to modify the pipeline, and as explained later, it is
possible to take into account C<%plan>s defined in superclasses.
=cut
( run in 0.597 second using v1.01-cache-2.11-cpan-64827b87656 )