SYNOPSIS

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

    package MyOtherClass;
    use MyClass;
    my @components = MyClass->components;

DESCRIPTION

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

\s-1OPTIONS\s0

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.

AUTHOR

Sebastian Riedel, \*(C`[email protected]\*(C'

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.

RELATED TO Module::Pluggable::Fast…

Module::Pluggable