Apache2::ASP::ConfigPostProcessor - Base class for configuration post-processors
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:
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 :) }
All subclasses must implement the following method(s) at a minimum:
Should do something to the $Config object, and then *return* that new $Config object.
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.
Please visit the Apache2::ASP homepage at http://www.devstack.com/ to see examples of Apache2::ASP in action.
John Drago <jdrago_999@yahoo.com>
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.
To install Apache2::ASP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::ASP
CPAN shell
perl -MCPAN -e shell install Apache2::ASP
For more information on module installation, please visit the detailed CPAN module installation guide.