NAME

Lim::Plugins - Lim's plugin loader and container

VERSION

See Lim for version.

SYNOPSIS

    use Lim::Plugins;

    Lim::Plugins->instance->Load;

METHODS

$instance = Lim::Plugins->instance

Returns the singelton instance of this class.

$instance->Load

Loads all plugins that exists on the system under Lim::Plugin::. Returns the reference to itself even on error.

@modules = $instance->LoadedModules

Returns a list of loaded plugin's module name (eg Lim::Plugin::Example).

@modules = $instance->Loaded

Returns a list of hash references of loaded plugins.

    { name => Short name (eg Example), module => Module name (Lim::Plugin::Example), version => Version (Lim::Plugin::Example->VERSION), loaded => True or false if the plugin is loaded (True) }

@modules = $instance->All

Returns a list of hash references of all known plugins, check Loaded for how the hash reference looks.

AUTHOR

Jerry Lundström, <lundstrom.jerry at gmail.com>

BUGS

Please report any bugs or feature requests to https://github.com/jelu/lim/issues.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Lim::Plugins

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2012-2013 Jerry Lundström.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.