logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Announce: Application::Pipeline and WWW::Pipeline now on CPAN: msg#00104

Subject: Re: Announce: Application::Pipeline and WWW::Pipeline now on CPAN
Ok, I've looked.  The code is correct the way it is.  To summarize:

- Phases are different logical sections of the application's pipeline, set by the subclass. For example, for WWW::Pipeline the phases are
     Initialization
     ParseRequest
     GenerateResponse
     SendResponse
     Teardown

- Phase Stages are temporal designations within a phase that are hardcoded to A::P. They are on line 39:

our @phase_stages = qw( FIRST EARLY MIDDLE LATE LAST );

This lets each handler added to the pipeline specify a preference for when during a phase it should run. The default is middle. See "Building the Pipeline Plan" section of the A::P documentation, as well as Example.pm from the WWW::Pipeline distribution for an example.

-Stephen

Ron Savage wrote:

On Thu, 19 Aug 2004 22:40:19 -0400, Stephen Howard wrote:

Hi Stephen

In your module Application::Pipeline you have this code at line 73 .. 74:
  foreach my $phase ( @{$self->{_phases}} ) {
      foreach my  $stage ( @phase_stages ) {
I assume you mean:
  foreach my $phase ( @{$self->{_phases}} ) {
      foreach my  $stage ( @{$self->{_phases}{$phase}} ) {
Is that correct?

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@xxxxxxxxxxxxxxxxx/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: cgiapp-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: cgiapp-help@xxxxxxxxxxxxxxxxx





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>