1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
Source: libobject-container-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
Uploaders: Marius Gavrilescu <marius@ieval.ro>
Section: perl
Testsuite: autopkgtest-pkg-perl
Priority: optional
Build-Depends: debhelper-compat (= 13),
libmodule-build-pluggable-cpanfile-perl
Build-Depends-Indep: libclass-accessor-perl <!nocheck>,
libexporter-autoclean-perl <!nocheck>,
libtest-base-perl <!nocheck>,
libtest-requires-perl <!nocheck>,
perl
Standards-Version: 4.6.1
Vcs-Browser: https://salsa.debian.org/perl-team/modules/packages/libobject-container-perl
Vcs-Git: https://salsa.debian.org/perl-team/modules/packages/libobject-container-perl.git
Homepage: https://metacpan.org/release/Object-Container
Rules-Requires-Root: no
Package: libobject-container-perl
Architecture: all
Depends: ${misc:Depends},
${perl:Depends},
libclass-accessor-perl
Recommends: libexporter-autoclean-perl
Description: module that provides a simple object container
Object::Container is an object container with an OO interface. It is
used to make singletons out of ordinary classes.
.
For example, if you want to have a single instance of WWW::Mechanize
throughout a program, you can do
Object::Container->register('WWW::Mechanize') somewhere and then you
can retrieve that instance of WWW::Mechanize from anywhere else with
Object::Container->get('WWW::Mechanize');
.
Class::Singleton is a similar module, which makes subclasses
singletons. Unlike Class::Singleton, Object::Container can make any
class a singleton.
.
Object::Registrar is another similar module, but it does not support
lazy loading.
|