Config::Model::Backend::Any.3pm

Langue: en

Version: 2010-06-11 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

Config::Model::Backend::Any - Virtual class for other backends

VERSION

version 1.205

SYNOPSIS

  package Config::Model::Backend::Foo ;
  use base qw/Config::Model::Backend::Any/;
 
  sub suffix { 
    # optional
    return '.foo';
  }
 
  sub read {
    # mandatory
  }
 
  sub write {
    # mandatory
  }
 
 

DESCRIPTION

This module is to be inherited by other backend plugin classes

See ``read callback'' in Config::Model::AutoRead and ``write callback'' in Config::Model::AutoRead for more details on the method that must be provided by any backend classes.

CONSTRUCTOR

new ( node => $node_obj, name => backend_name )

The constructor should be used only by Config::Model::Node.

annotation

Whether the backend supports to read and write annotation. Default i s 0. Override if your backend supports annotations

AUTHOR

Dominique Dumont, (ddumont at cpan dot org)

SEE ALSO

Config::Model, Config::Model::AutoRead, Config::Model::Node, Config::Model::Backend::Yaml,