Skip to content
Sections
>> Trisquel >> 软件包 >> nabia >> perl >> libobject-container-perl
etiona  ] [  nabia  ] [  aramo  ]
[ 源代码: libobject-container-perl  ]

软件包: libobject-container-perl (0.14-1)

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.

其他与 libobject-container-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • dep: libclass-accessor-perl
    Perl module that automatically generates accessors
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

下载 libobject-container-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 17.3 kB90 kB [文件列表]