| ASP4 documentation | Contained in the ASP4 distribution. |
ASP4::ConfigNode::System - the 'system' portion of the config.
my $system = $Config->system;
This package provides special access to the elements specific to the system
portion of the XML config file.
A list of library paths that should be included into @INC.
A list of Perl modules that should be loaded automatically.
A list of ASP4::ConfigPostProcessor modules that should be given the ability to alter the config before it is considered "ready for use" by the rest of the application.
A hash of %ENV variables that should be set.
A collection of special read-only values that should be available throughout the application.
Examples include encryption keys, API keys and username/password combos to access remote services.
It's possible that some bugs have found their way into this release.
Use RT http://rt.cpan.org/NoAuth/Bugs.html?Dist=ASP4 to submit bug reports.
Please visit the ASP4 homepage at http://0x31337.org/code/ to see examples of ASP4 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.
| ASP4 documentation | Contained in the ASP4 distribution. |
package ASP4::ConfigNode::System; use strict; use warnings 'all'; use base 'ASP4::ConfigNode'; sub new { my $class = shift; my $s = $class->SUPER::new( @_ ); return $s; }# end new() sub libs { my $s = shift; @{ $s->{libs} || [ ] }; }# end libs() sub load_modules { my $s = shift; @{ $s->{load_modules} || [ ] }; }# end load_modules() sub env_vars { my $s = shift; $s->{env_vars} || { }; }# end env_vars() sub post_processors { my $s = shift; @{ $s->{post_processors} || [ ] }; }# end post_processors() sub settings { my $s = shift; return $s->{settings} || { }; }# end settings() 1;# return true: