1Class::Factory::Util(3)User Contributed Perl DocumentatioCnlass::Factory::Util(3)
2
3
4

NAME

6       Class::Factory::Util - Provide utility methods for factory classes
7

SYNOPSIS

9         package My::Class;
10
11         use Class::Factory::Util;
12
13         My::Class->subclasses;
14

DESCRIPTION

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

USAGE

19       When this module is loaded, it creates a method in its caller named
20       "subclasses()".  This method returns a list of the available subclasses
21       for the package.  It does this by looking in @INC as well as the
22       directory containing the caller, and finding any modules in the
23       immediate subdirectories of the calling module.
24
25       So if you have the modules "Foo::Base", "Foo::Base::Bar", and
26       "Foo::Base::Baz", then the return value of "Foo::Base->subclasses()"
27       would be "Bar" and "Baz".
28

SUPPORT

30       Please submit bugs to the CPAN RT system at
31       http://rt.cpan.org/NoAuth/ReportBug.html?Queue=class-factory-util or
32       via email at bug-class-factory-util@rt.cpan.org.
33

AUTHOR

35       Dave Rolsky, <autarch@urth.org>.
36
37       Removed from Alzabo and packaged by Terrence Brannon, <tbone@cpan.org>.
38
40       Copyright (c) 2003-2007 David Rolsky.  All rights reserved.  This
41       program is free software; you can redistribute it and/or modify it
42       under the same terms as Perl itself.
43
44       The full text of the license can be found in the LICENSE file included
45       with this module.
46
47
48
49perl v5.34.0                      2021-07-22           Class::Factory::Util(3)
Impressum