SYNOPSIS

  package My::Class;

  use Class::Factory::Util;

  My::Class->subclasses;

DESCRIPTION

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 \*(C`subclasses()\*(C'. 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 \*(L"Foo::Base\*(R", \*(L"Foo::Base::Bar\*(R", and \*(L"Foo::Base::Baz\*(R", then the return value of \*(C`Foo::Base->subclasses()\*(C' would be \*(L"Bar\*(R" and \*(L"Baz\*(R".

SUPPORT

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

AUTHOR

Dave Rolsky, <[email protected]>.

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

COPYRIGHT

Copyright (c) 2003-2007 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the \s-1LICENSE\s0 file included with this module.