NAME

CallBackery::Config - get parse configuration file for CallBackery

SYNOPSIS

use Nq::Config;
my $cfg = CallBackery::Config->new(file=>$file);
my $hash_ref = $cfg->cfgHash();
my $pod = $cfg->pod();

DESCRIPTION

CallBackery gets much of its configuration from this config file.

file

the name of the config file

cfgHash

a hash containing the data from the config file

pod

returns a pod documenting the config file

pluginPath

array of name spaces to look for gui plugins

loadAndNewPlugin('PluginModule')

Find the given module in the pluginPath, load it and create a first instance.

getTranslations

Load translations from po files

postProcessCfg

Post process the configuration data into a format that is easily used by the application.

instantiatePlugin(pluginName,userObj,args)

create a new instance of this plugin prototype

$configBlob = $cfg->getConfigBlob()

return the configuration state of the system as a blob

$cfg->restoreConfigBlob(configBlob)

retore the confguration state

$cfg->reConfigure()

Regenerate all the template based configuration files using input from the database.

$cfg->unConfigure()

Restore the system to unconfigured state. By removing the configuration database, unlinking all user supplied configuration files and regenerating all template based configuration files with empty input.

$cfg->promisify(xxx)

always return a promise resolving to the value

$cfg->promiseDeath(xxx)

die when there is a promise response

COPYRIGHT

Copyright (c) 2014 by OETIKER+PARTNER AG. All rights reserved.

AUTHOR

Tobias Oetiker <tobi@oetiker.ch> Fritz Zaucker <fritz.zaucker@oetiker.ch>

HISTORY

2014-01-11 to 1.0 first version
2014-04-29 fz 1.1 implement plugin path
2020-11-20 fz 1.2 call postProcessCfg from CallBackery.pm