Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
Name: perl-Class-Factory | Distribution: Mageia |
Version: 1.60.0 | Vendor: Mageia.Org |
Release: 5.mga9 | Build date: Sun Mar 20 04:27:12 2022 |
Group: Development/Perl | Build host: localhost |
Size: 38212 | Source RPM: perl-Class-Factory-1.60.0-5.mga9.src.rpm |
Packager: umeabot <umeabot> | |
Url: https://metacpan.org/release/Class-Factory | |
Summary: Base class for dynamic factory classes |
This is a simple module that factory classes can use to generate new types of objects on the fly, providing a consistent interface to common groups of objects. Factory classes are used when you have different implementations for the same set of tasks but may not know in advance what implementations you will be using. Configuration files are a good example of this. There are four basic operations you would want to do with any configuration: read the file in, lookup a value, set a value, write the file out. There are also many different types of configuration files, and you may want users to be able to provide an implementation for their own home-grown configuration format. With a factory class this is easy. To create the factory class, just subclass 'Class::Factory' and create an interface for your configuration serializer. 'Class::Factory' even provides a simple constructor for you. Here's a sample interface and our two built-in configuration types:
GPL+ or Artistic
* Sun Mar 20 2022 umeabot <umeabot> 1.60.0-5.mga9 + Revision: 1802434 - Mageia 9 Mass Rebuild
/usr/share/doc/perl-Class-Factory /usr/share/doc/perl-Class-Factory/Changes /usr/share/doc/perl-Class-Factory/META.yml /usr/share/doc/perl-Class-Factory/README /usr/share/man/man3/Class::Factory.3pm.xz /usr/share/perl5/vendor_perl/Class /usr/share/perl5/vendor_perl/Class/Factory.pm
Generated by rpm2html 1.8.1
Fabrice Bellet, Sat Sep 7 08:24:49 2024