NAME
Apache2::ASP::ConfigPostProcessor - Base class for configuration post-processors
SYNOPSIS
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
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
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
Please visit the Apache2::ASP homepage at http://www.devstack.com/ to see examples of Apache2::ASP in action.
AUTHOR
John Drago <jdrago_999@yahoo.com>
COPYRIGHT AND LICENSE
Copyright 2007 John Drago, All rights reserved.
This software is free software. It may be used and distributed under the same terms as Perl itself.