Query: config::model::itself::backenddetector
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Config::Model::Itself::BackendDetector(3pm) User Contributed Perl Documentation Config::Model::Itself::BackendDetector(3pm)NAMEConfig::Model::Itself::BackendDetector - Detect available read/write backendsSYNOPSIS# this class should be referenced in a configuration model and # created only by Config::Model::Node my $model = Config::Model->new() ; $model ->create_config_class ( name => "Test", 'element' => [ 'backend' => { type => 'leaf', class => 'Config::Model::Itself::BackendDetector' , value_type => 'enum', # specify backends built in Config::Model choice => [qw/cds_file perl_file ini_file augeas custom/], help => { cds_file => "file ...", ini_file => "Ini file ...", perl_file => "file perl", custom => "Custom format", augeas => "Experimental backend", } } ], ); my $root = $model->instance(root_class_name => 'Test') -> config_root ; my $backend = $root->fetch_element('backend') ; my @choices = $backend->get_choice ;DESCRIPTIONThis class is derived from Config::Model::Value. It is designed to be used in a 'enum' value where the choice (the available backends) are the backend built in Config::Model and all the plugin backends. The plugin backends are all the "Config::Model::Backend::*" classes. This module will detect available plugin backend and query their pod documentation to provide a contextual help for config-model graphical editor.AUTHORDominique Dumont, (ddumont at cpan dot org)SEE ALSOConfig::Model, Config::Model::Node, Config::Model::Value perl v5.14.2 2012-06-22 Config::Model::Itself::BackendDetector(3pm)