logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Module::Pluggable::Fast - Fast plugins with instantiation

Author

       Sebastian Riedel, "sri@cpan.org"

Description

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

   OPTIONSname

       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.

Name

       Module::Pluggable::Fast - Fast plugins with instantiation

See Also

       Module::Pluggable

perl v5.36.0                                       2022-12-08                                          Fast(3pm)

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;

See Also