[libobject-container-perl] 02/04: Update long description

Marius Gavrilescu marius-guest at alioth.debian.org
Wed Oct 23 19:13:55 UTC 2013


This is an automated email from the git hooks/post-receive script.

marius-guest pushed a commit to branch master
in repository libobject-container-perl.

commit 265b19025badd892bc317aae529998b25625b38a
Author: Marius Gavrilescu <marius at ieval.ro>
Date:   Wed Oct 23 21:32:54 2013 +0300

    Update long description
---
 debian/control |   20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

diff --git a/debian/control b/debian/control
index a7483cf..22cdb54 100644
--- a/debian/control
+++ b/debian/control
@@ -18,12 +18,18 @@ Architecture: all
 Depends: ${misc:Depends}, ${perl:Depends},
  libclass-accessor-perl
 Description: module that provides a simple object container
- This module is a object container interface which supports 
- both OO interface and Singleton interface.
+ Object::Container is an object container with an OO interface. It is
+ used to make singletons out of ordinary classes.
  .
- If you want to use one module from several places, you might use
- Class::Singleton to access the module from any places.
- But you should subclass each modules to singletonize.
+ 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 elsee with
+ Object::Container->get('WWW::Mechanize');
  .
- This module provide singleton container instead of module itself, 
- so it is easy to singleton multiple classes.
+ 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.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libobject-container-perl.git



More information about the Pkg-perl-cvs-commits mailing list