Module::Pluggable::Object(3perl)

Module::Pluggable::Object3perl

Automatically give your module the ability to have plugins

Usage

Simple use Module::Pluggable -

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

Overview

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.

This object is wrapped by "Module::Pluggable". If you want to do something odd or add non-general special features you're probably best to wrap this and produce your own subclass.

Options

See the "Module::Pluggable" docs.

Copying

Copyright, 2006 Simon Wistow

Distributed under the same terms as Perl itself.

Releases

3 releases since Debian 5.0 (Lenny); the text changed 2 times.

  1. 5.0
  2. 6.0
  3. 7

Author

Simon Wistow <[email protected]>

Bugs

None known.

From perl-doc 5.14.2-21+deb7u3 in Debian 7 (Wheezy). Parsed by carta from the page's man source.