Class::Factory::Util(3pm)

Class::Factory::Util3pm

Provide utility methods for factory classes

Usage

  package My::Class;
  use Class::Factory::Util;
  My::Class->subclasses;

Overview

This module exports a method that is useful for factory classes.

Usage

When this module is loaded, it creates a method in its caller named subclasses(). This method returns a list of the available subclasses for the package. It does this by looking in @INC as well as the directory containing the caller, and finding any modules in the immediate subdirectories of the calling module.

So if you have the modules "Foo::Base", "Foo::Base::Bar", and "Foo::Base::Baz", then the return value of "Foo::Base->subclasses()" would be "Bar" and "Baz".

Support

Please submit bugs to the CPAN RT system at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=class-factory-util or via email at [email protected].

Releases

12 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1–4.0
  2. 5.0–8
  3. 9–10
  4. 11
  5. 12–13
  6. Arch

Author

Dave Rolsky, <[email protected]>.

Removed from Alzabo and packaged by Terrence Brannon, <[email protected]>.

From perl-class-factory-util 1.7-12 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.