Patch provided by Martin Wilke via PR 34329.
Changes:
1.04 Mon Aug 20 22:26:15 PST 2006
- New maintainer, Fred Moyer <fred@redhotpenguin.com>
- Add Devel::Cover support, current coverage is 71%
- Moved check for Test::More to MY::test
Changes since 1.00:
- Added 'get_my_factory()' and 'get_my_factory_type()'
- Ensure that new() returns undef if get_factory_class() doesn't
work properly and factory_error() is overridden (and the
overridden method doesn't die)
- Added a few more tests to ensure factory_log() and
factory_error() working properly
- add_factory_type() checks %INC to see if a class is already
loaded.
- All log/error messages now have variables in apostrophes
rather than brackes.
This is a simple module that factory classes can use to generate new
types of objects on the fly, providing a consistent interface to common
groups of objects.
Factory classes are used when you have different implementations for the
same set of tasks but may not know in advance what implementations you
will be using.