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
29       This object is wrapped by "Module::Pluggable". If you want to do
30       something odd or add non-general special features you're probably best
31       to wrap this and produce your own subclass.
32

OPTIONS

34       See the "Module::Pluggable" docs.
35

AUTHOR

37       Simon Wistow <simon@thegestalt.org>
38

COPYING

40       Copyright, 2006 Simon Wistow
41
42       Distributed under the same terms as Perl itself.
43

BUGS

45       None known.
46

SEE ALSO

48       Module::Pluggable
49
50
51
52perl v5.32.0                      2020-07-28      Module::Pluggable::Object(3)
Impressum