ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



Module::Pluggable::Object(3)         User Contributed Perl Documentation        Module::Pluggable::Object(3)



NAME
       Module::Pluggable::Object - automatically give your module the ability to have plugins

SYNOPSIS
       Simple use Module::Pluggable -package Module::Pluggablepackage

           package MyClass;
           use Module::Pluggable::Object;

           my $finder = Module::Pluggable::Object->new(%opts);
           print "My plugins are: ".join(", ", $finder->plugins)."\n";

DESCRIPTION
       Provides a simple but, hopefully, extensible way of having 'plugins' for your module. Obviously this
       isn't going to be the be all and end all of solutions but it works for me.

       Essentially all it does is export a method into your namespace that looks through a search path for
       .pm files and turn those into class names.

       Optionally it instantiates those classes for you.

AUTHOR
       Simon Wistow <simon@thegestalt.org>

COPYING
       Copyright, 2006 Simon Wistow

       Distributed under the same terms as Perl itself.

BUGS
       None known.

SEE ALSO
       Module::Pluggable



perl v5.8.8                                      2007-01-29                     Module::Pluggable::Object(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.