软件包:libclass-singleton-perl(1.6-2)
libclass-singleton-perl 的相关链接
Debian 的资源:
下载源码包 libclass-singleton-perl:
- [libclass-singleton-perl_1.6-2.dsc]
- [libclass-singleton-perl_1.6.orig.tar.gz]
- [libclass-singleton-perl_1.6-2.debian.tar.xz]
维护小组:
外部的资源:
- 主页 [metacpan.org]
相似软件包:
implementation of a "Singleton" class
The Class::Singleton module implements a Singleton class from which other classes can be derived. A Singleton describes an object class that can have only one instance in any system. An example of a Singleton might be a print spooler or system registry.
By itself, the Class::Singleton module does very little other than manage the instantiation of a single object. In deriving a class from Class::Singleton, your module will inherit the Singleton instantiation method and can implement whatever specific functionality is required.
For a description and discussion of the Singleton class, see "Design Patterns", Gamma et al, Addison-Wesley, 1995, ISBN 0-201-63361-2.