ASP4::ConfigNode::System - the 'system' portion of the config.


ASP4 documentation Contained in the ASP4 distribution.

Index


Code Index:

NAME

Top

ASP4::ConfigNode::System - the 'system' portion of the config.

SYNOPSIS

Top

  my $system = $Config->system;

DESCRIPTION

Top

This package provides special access to the elements specific to the system portion of the XML config file.

PUBLIC PROPERTIES

Top

libs

A list of library paths that should be included into @INC.

load_modules

A list of Perl modules that should be loaded automatically.

post_processors

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.

env_vars

A hash of %ENV variables that should be set.

settings

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.

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=ASP4 to submit bug reports.

HOMEPAGE

Top

Please visit the ASP4 homepage at http://0x31337.org/code/ to see examples of ASP4 in action.

AUTHOR

Top

John Drago <jdrago_999@yahoo.com>

COPYRIGHT AND LICENSE

Top


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: