Dominique Dumont > Config-Model-2.054 > Config::Model::Value::LayeredInclude

Download:
Config-Model-2.054.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 2.054   Source  

NAME ^

Config::Model::Value::LayeredInclude - Include a sub layer configuration

VERSION ^

version 2.054

SYNOPSIS ^

    # in a model declaration:
    'element' => [
      'include' => {
        'class' => 'Config::Model::Value::LayeredInclude',

        # usual Config::Model::Value parameters
        'type' => 'leaf',
        'value_type' => 'uniline',
        'convert' => 'lc',
        'summary' => 'Include file for cascaded configuration',
        'description' => 'To support multiple variants of ...'
      },
    ]

DESCRIPTION ^

This class inherits from Config::Model::Value. It overrides store_cb to trigger a refresh of layered value when value is actually changed. I.e. changing this value will reload the refered configuration file and use its values as default value. This class was designed to cope with multistrap configuration.

CAUTION

A configuration file can support 2 kinds of include:

This class works only with the first type

AUTHOR ^

Copyright 2011,2013 Dominique Dumont <ddumont at cpan.org>

AUTHOR ^

Dominique Dumont

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2014 by Dominique Dumont.

This is free software, licensed under:

  The GNU Lesser General Public License, Version 2.1, February 1999
syntax highlighting: