1Module::Pluggable::ObjeUcste(r3)Contributed Perl DocumenMtoadtuiloen::Pluggable::Object(3)
2
3
4

NAME

6       Module::Pluggable::Object - automatically give your module the ability
7       to have plugins
8

SYNOPSIS

10       Simple use Module::Pluggable -
11
12           package MyClass;
13           use Module::Pluggable::Object;
14
15           my $finder = Module::Pluggable::Object->new(%opts);
16           print "My plugins are: ".join(", ", $finder->plugins)."\n";
17

DESCRIPTION

19       Provides a simple but, hopefully, extensible way of having 'plugins'
20       for your module. Obviously this isn't going to be the be all and end
21       all of solutions but it works for me.
22
23       Essentially all it does is export a method into your namespace that
24       looks through a search path for .pm files and turn those into class
25       names.
26
27       Optionally it instantiates those classes for you.
28

AUTHOR

30       Simon Wistow <simon@thegestalt.org>
31

COPYING

33       Copyright, 2006 Simon Wistow
34
35       Distributed under the same terms as Perl itself.
36

BUGS

38       None known.
39

SEE ALSO

41       Module::Pluggable
42
43
44
45perl v5.8.8                       2007-04-17      Module::Pluggable::Object(3)
Impressum