Apache2::ASP::ConfigPostProcessor - Base class for configuration post-processors


Apache2-ASP documentation Contained in the Apache2-ASP distribution.

Index


Code Index:

NAME

Top

Apache2::ASP::ConfigPostProcessor - Base class for configuration post-processors

SYNOPSIS

Top

  package My::ConfigPostProcessor;

  use strict;
  use warnings 'all';
  use base 'Apache2::ASP::ConfigPostProcessor';

  sub post_process {
    my ($self, $config) = @_;

    $config->{mood} = 'Happy';

    # Don't forget to return the new $config object:
    return $config;
  }

  1;# return true:

Then, in the apache2-asp-config.xml:

  <?xml version="1.0"?>
  <config>
    ...
    <system>
      ...
      <post_processors>
        <class>My::PostProcessor</class>
        ...
      </post_processors>
      ...
    </system>
    ...
  </config>

Then, somewhere else in the web application...

  if( $Config->mood eq 'Happy' ) {
    # Don't worry - be happy :)
  }

ABSTRACT METHODS

Top

All subclasses must implement the following method(s) at a minimum:

post_process( $self, Apache2::ASP::Config $Config )

Should do something to the $Config object, and then *return* that new $Config object.

BUGS

Top

It's possible that some bugs have found their way into this release.

Use RT http://rt.cpan.org/NoAuth/Bugs.html?Dist=Apache2-ASP to submit bug reports.

HOMEPAGE

Top

Please visit the Apache2::ASP homepage at http://www.devstack.com/ to see examples of Apache2::ASP in action.

AUTHOR

Top

John Drago <jdrago_999@yahoo.com>

COPYRIGHT AND LICENSE

Top


Apache2-ASP documentation Contained in the Apache2-ASP distribution.

package Apache2::ASP::ConfigPostProcessor;

use strict;
use warnings 'all';


#==============================================================================
sub new
{
  my ($class, %args) = @_;
  
  return bless \%args, $class;
}# end new()


#==============================================================================
sub post_process($$);

1;# return true: