|
Packit |
fafb56 |
NAME
|
|
Packit |
fafb56 |
Class::Factory::Util - Provide utility methods for factory classes
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
SYNOPSIS
|
|
Packit |
fafb56 |
package My::Class;
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
use Class::Factory::Util;
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
My::Class->subclasses;
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
DESCRIPTION
|
|
Packit |
fafb56 |
This module exports a method that is useful for factory classes.
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
USAGE
|
|
Packit |
fafb56 |
When this module is loaded, it creates a method in its caller named
|
|
Packit |
fafb56 |
"subclasses()". This method returns a list of the available subclasses
|
|
Packit |
fafb56 |
for the package. It does this by looking in @INC as well as the
|
|
Packit |
fafb56 |
directory containing the caller, and finding any modules in the
|
|
Packit |
fafb56 |
immediate subdirectories of the calling module.
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
So if you have the modules "Foo::Base", "Foo::Base::Bar", and
|
|
Packit |
fafb56 |
"Foo::Base::Baz", then the return value of "Foo::Base->subclasses()"
|
|
Packit |
fafb56 |
would be "Bar" and "Baz".
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
SUPPORT
|
|
Packit |
fafb56 |
Please submit bugs to the CPAN RT system at
|
|
Packit |
fafb56 |
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=class-factory-util or via
|
|
Packit |
fafb56 |
email at bug-class-factory-util@rt.cpan.org.
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
AUTHOR
|
|
Packit |
fafb56 |
Dave Rolsky, <autarch@urth.org>.
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
Removed from Alzabo and packaged by Terrence Brannon, <tbone@cpan.org>.
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
COPYRIGHT
|
|
Packit |
fafb56 |
Copyright (c) 2003-2007 David Rolsky. All rights reserved. This program
|
|
Packit |
fafb56 |
is free software; you can redistribute it and/or modify it under the
|
|
Packit |
fafb56 |
same terms as Perl itself.
|
|
Packit |
fafb56 |
|
|
Packit |
fafb56 |
The full text of the license can be found in the LICENSE file included
|
|
Packit |
fafb56 |
with this module.
|
|
Packit |
fafb56 |
|