LCFG::Component - Perl module for LCFG Generic component
This module provides a superclass for creating LCFG components in Perl.
Components should subclass LCFG::Component, create a new instance of the class, and call the Dispatch method to excute the component method specified in the command line arguments. The LCFG component perlex shows how this is used in practice.
LCFG::Component attempts to provide an identical functionality to the shell generic component ngeneric.
Equivalent Perl functions are provided for all the method functions described in lcfg-ngeneric. A hash of resource values is passed as the first argument to each function, rather than passing the resources in the environment.
See the documentation for the ngeneric component.
All the variables described for lcfg-ngeneric have equivalent instance variables in the LCFG::Component class.
Methods with names of the form Method_methodname, will be automatically called by the Dispatch function. Ad-hoc methods should arrange to call the Lock function if appropriate to prevent simultaneous method calls.
The shell generic functions.
An example component.
The template processor.
The resource handling functions.
Solaris9, Fedora3, Fedora5, Fedora6, Scientific5
Paul Anderson <dcspaul@inf.ed.ac.uk>