The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Search results for "module:Class::Singleton"

Class::Singleton - Implementation of a "Singleton" class River stage two • 22 direct dependents • 35 total dependents

This is the "Class::Singleton" module. 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. This module implements a Singleton class from which oth...

SHAY/Class-Singleton-1.6 - 02 Dec 2020 08:42:52 UTC

OOP::Perlish::Class::Singleton River stage zero No dependents

Create a singleton class. Only one instance of this class will ever exist, no matter how many times a call is made to OOP::Perlish::Class::Singleton->new(); The first call will create the instance, and all subsequent calls will receive references to ...

JBEVERLY/OOP-Perlish-Class-0.45.0 - 08 Feb 2010 12:29:17 UTC

Class::MakeMethods::Emulator::Singleton - Emulate Class::Singleton River stage one • 1 direct dependent • 1 total dependent

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. This module implements a Singleton class from which other classes can be derived. By itself, t...

EVO/Class-MakeMethods-1.01 - 07 Sep 2004 21:45:34 UTC

MooseX::Singleton::Role::Meta::Class - Metaclass role for MooseX::Singleton River stage two • 30 direct dependents • 53 total dependents

This metaclass role makes sure that there is only ever one instance of an object for a singleton class. The first call to "construct_instance" is run normally (and then cached). Subsequent calls will return the cached version....

ETHER/MooseX-Singleton-0.30 - 23 Nov 2016 04:47:31 UTC

lib/OOP/Perlish/Class/Singleton/UnitTests/Singleton.pm River stage zero No dependents

JBEVERLY/OOP-Perlish-Class-0.45.0 - 08 Feb 2010 12:29:17 UTC

Class::WeakSingleton - A Singleton that expires when all the references to it expire River stage one • 1 direct dependent • 1 total dependent

This is the Class::WeakSingleton module. 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, system registry or database connection. A "weak" Singleton is not immort...

JJORE/Class-WeakSingleton-1.05 - 13 Nov 2008 19:25:21 UTC

Class::SingletonProxy - proxy class methods to a singleton River stage zero No dependents

classes derived from Class::SingletonProxy redirect class methods to (per class) singleton objects. METHODS $class->SINGLETON() this method can be redefined on subclasses and is automatically called to create the singleton when it has not been previo...

SALVA/Class-SingletonProxy-0.01 - 29 Jun 2005 10:45:17 UTC

Class::StrongSingleton - A stronger and more secure Singleton base class. River stage one • 1 direct dependent • 1 total dependent

This module is an alternative to Class::Singleton and Class::WeakSingleton, and provides a more secure Singleton class in that it takes steps to prevent the possibility of accidental creation of multiple instances and/or the overwriting of existsing ...

STEVAN/Class-StrongSingleton-0.02 - 28 Feb 2005 04:23:57 UTC

Class::SingletonMethod - Extend individual objects with additional methods River stage zero No dependents

This module provides a Perl implementation of singleton methods. The Ruby FAQ defines singleton methods like so: (Q) What is a singleton method? (A) A singleton method is defined for the particular object but in the class. A singleton method allows a...

SIMON/Class-SingletonMethod-1.0 - 01 Jan 2004 15:51:48 UTC

DBIx::Class::SingletonRows - make database rows returned by DBIx::Class into singletons River stage zero No dependents

When you do this with DBIx::Class: my $row = $schema->... my $row2 = update_and_return(); sub update_and_return { my $row = $schema->... $row->somefield("HLAGH"); $row->update(); return $row; } then even if both $row and $row2 have the same row_id, t...

DCANTRELL/DBIx-Class-SingletonRows-0.11 - 26 Jun 2008 17:33:22 UTC

lib/Class/Component/Component/SingletonMethod.pm River stage one • 4 direct dependents • 8 total dependents

YAPPO/Class-Component-0.17 - 12 May 2008 08:58:08 UTC

lib/Class/STL/ClassMembers/SingletonConstructor.pm River stage one • 1 direct dependent • 1 total dependent

DAVIDO/Class-STL-Containers-0.37 - 21 Jun 2018 18:47:43 UTC

lib/Class/Component/Component/Autocall/SingletonMethod.pm River stage one • 4 direct dependents • 8 total dependents

YAPPO/Class-Component-0.17 - 12 May 2008 08:58:08 UTC

Class::NonOO - Use methods as functions with an implicit singleton River stage zero No dependents

This module allows you to turn a class into a module that exports methods as functions that use an implicit singleton. This allows you to provide a "hybrid" object-oriented/functional interface....

RRWO/Class-NonOO-v0.4.1 - 12 Jan 2016 17:23:35 UTC

Class::Monadic - Provides monadic methods (a.k.a. singleton methods) River stage one • 2 direct dependents • 4 total dependents

"Class::Monadic" provides per-object classes, monadic classes. It is also known as singleton classes in other languages, e.g. "Ruby". Monadic classes is used in order to define monadic methods, i.e. per-object methods (a.k.a. singleton methods), whic...

GFUJI/Class-Monadic-0.04 - 28 Mar 2009 05:58:31 UTC

Class::DI - Perl dependency injection container River stage zero No dependents

this class does DI. The instance is generated based on an external setting, and the dependence between components is excluded from the source code....

HAOSAN/Class-DI-0.03 - 31 Jul 2010 04:19:44 UTC

Class::Null - Implements the Null Class design pattern River stage two • 9 direct dependents • 15 total dependents

This class implements the Null Class design pattern. Suppose that methods in your object want to write log messages to a log object. The log object is possibly stored in a slot in your object and can be accessed using an accessor method: package MyOb...

MARCEL/Class-Null-2.110730 - 14 Mar 2011 10:40:28 UTC

Class::Default - Static calls apply to a default instantiation River stage two • 5 direct dependents • 14 total dependents

Class::Default provides a mechanism to allow your class to take static method calls and apply it to a default instantiation of an object. It provides a flexibility to an API that allows it to be used more confortably in different situations. A good e...

ADAMK/Class-Default-1.51 - 16 Nov 2007 00:14:15 UTC

MongoDBx::Class - Flexible ORM for MongoDB databases River stage zero No dependents

MongoDBx::Class is a flexible object relational mapper (ORM) for MongoDB databases. Given a schema-like collection of document classes, MongoDBx::Class expands MongoDB objects (hash-refs in Perl) from the database into objects of those document class...

IDOPEREL/MongoDBx-Class-1.030002 - 04 Feb 2014 19:44:34 UTC

Class::Cloneable - A base class for Cloneable objects. River stage zero No dependents

This module provides a flexible base class for building objects with cloning capabilities. This module does it's best to respect the encapsulation of all other objects, including subclasses of itself. This is intended to be a stricter and more OO-ish...

STEVAN/Class-Cloneable-0.03 - 06 Feb 2006 18:08:23 UTC
33 results (0.082 seconds)