This is an abstract role which provides an alternate constructor for creating objects using parameters passed in from a configuration file. The actual implementation of reading the configuration file is left to concrete sub-roles.
It declares an attribute 'configfile' and a class method 'new_with_config', and requires that concrete roles derived from it implement the class method 'get_config_from_file'.
Attributes specified directly as arguments to 'new_with_config' supersede those in the configfile.
the MooseX::Getopt manpage knows about this abstract role, and will use it if available to load attributes from the file specified by the command line flag '--configfile' during its normal 'new_with_options'.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
0.14-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
0.14-bp155.2.8 info | GA Release | 2023-05-17 | 15 SP5 |
|
|
0.14-bp154.1.17 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
0.14-bp153.1.13 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
0.14-bp152.3.13 info | GA Release | 2020-04-17 | 15 SP2 |
|
|
0.14-bp151.3.1 info | GA Release | 2019-07-16 | 15 SP1 |
|
|
0.14-bp151.2.11 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
0.14-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|