Package : perl-Class-Factory > RPM : perl-Class-Factory-1.60.0-5.mga9.src.rpm
Basic items
Name | perl-Class-Factory |
Version | 1.60.0 |
Release | 5.mga9 |
URL | https://metacpan.org/release/Class-Factory |
Group | Development/Perl |
Summary | Base class for dynamic factory classes |
Size | 14KB |
Arch | noarch |
License | GPL+ or Artistic |
Description
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:
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:
Media information
Distribution release | Mageia cauldron |
Media name | core-release |
Media arch | x86_64 |
Advanced items
Source RPM | NOT IN DATABASE ?! |
Build time | 2022-03-20 04:27:08 |
Changelog | View in Sophie |
Files | View in Sophie |
Dependencies | View in Sophie |