devel/p5-Class-Singleton 1.6 OpenBSD
perl singleton pattern
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- devel, perl5
Description
A Singleton describes an object class that can have only one instance in any system. This module implements a Singleton class from which other classes can be derived. 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.
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/p5-Class-Singleton | 1.6 |
| FreeBSD | devel/p5-Class-Singleton | 1.6 |
| NetBSD | devel/p5-Class-Singleton | 1.6nb6 |
| DragonFly | devel/p5-Class-Singleton | 1.6 |
| MidnightBSD | devel/p5-Class-Singleton | 1.6 |
| HardenedBSD | devel/p5-Class-Singleton | 1.6 |
| GhostBSD | devel/p5-Class-Singleton | 1.6 |
| OPNsense | devel/p5-Class-Singleton | 1.6 |
Install
Binary package:
pkg_add p5-Class-Singleton
From the ports tree:
cd /usr/ports/devel/p5-Class-Singleton && make install