Module::Pluggable::Fast(3pm)

Module::Pluggable::Fast3pm

Fast plugins with instantiation

Usage

    package MyClass;
    use Module::Pluggable::Fast
      name   => 'components',
      search => [ qw/MyClass::Model MyClass::View MyClass::Controller/ ];
    package MyOtherClass;
    use MyClass;
    my @components = MyClass->components;

Overview

Similar to "Module::Pluggable" but instantiates plugins as soon as they're found, useful for code generators like "Class::DBI::Loader".

Options

name

Name for the exported method. Defaults to plugins.

require

If true, only require plugins.

callback

Codref to be called instead of the default instantiate callback.

search

Arrayref containing a list of namespaces to search for plugins. Defaults to the ::Plugin:: namespace of the calling class.

Releases

10 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0–9
  4. 10
  5. 11
  6. 12–13

Author

Sebastian Riedel, "[email protected]"

From libmodule-pluggable-fast-perl 0.19-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.