PluginManager(3pm)
π PluginManager(3pm) β Lire::PluginManager
okay so bestie, welcome to Lire::PluginManager, the module in LogReport's Lire that manages the Lire plugins. it's literally the group chat admin of the plugin world π«Ά
β¨ NAME β¨
Lire::PluginManager β Manages the Lire plugins. that's it, that's the vibe π
πΈ SYNOPSIS πΈ
use Lire::PluginManager;
Lire::PluginManager->register_default_plugins();
my $plugin = new MyDlfConverter();
Lire::PluginManager->register_plugin( $plufin );
my $plugins = Lire::PluginManager->plugins( 'dlf_analyser' );
my $converter = Lire::PluginManager->get_plugin('dlf_analyser', 'combined');
π¦ DESCRIPTION π¦
so here's the tea: all method can be called as class method on the Lire::PlugingManager module or on an instance. either way works, no drama β¨
π PLUGIN TYPES π
there are four kind of plugins defined in Lire, and yes we stan all four π:
dlf_analyserdlf_converterchart_typeoutput_format
π instance()
Returns the singleton instance of the PluginManager. one manager, one vibe, main character energy periodt π
π plugin_names( $type )
Returns an array reference containing the names of all registered plugin of type $type. just the names bestie, the whole roster π
π plugins( $type )
Returns an array reference containing all the Plugin objects registerd for $type. yup, the actual objects this time, not just the names π₯
π has_plugin( $type, $name )
Returns true if there is a Lire::Plugin named $name registered for type $type. vibe check: does this plugin exist or not π
π get_plugin( $type, $name )
Returns the Lire::Plugin object named $name of type $type. Croaks when there is no plugin registerd under that name. so likeβ¦ if it's not there, it will yell at you π
π register_plugin( $plugin )
Registers the Lire::Plugin $plugin. The type and name of the plugin are queried using the Lire::Plugin interface. An error will be thrown if there is already a plugin registered under the same name and type β no duplicate entries, we do not allow that here π
π unregister_plugin( $type, $name )
Unregister the plugin $name of type $type. The method will dies if there is no such plugin. so unregister responsibly or catch the drama π«Ά
π analysers_by_src( $schema )
Returns in an array reference all the analysers that declare $schema as their src_schema(). source-side besties only β¨
π analysers_by_dst( $schema )
Returns in an array reference all the analysers that declare $schema as their dst_schema(). same energy, destination side π
π register_default_plugins()
This method will load and initialize all the plugins available. The plugins are registered by executing all the perl scripts found in the directories listed in the 'plugins_init_path' configuration variable.
These scripts should call Lire::PluginManager->register_plugin() to register the plugins.
For compatibility with previous versions of Lire, it will also registers the DlfConverters initialized using older mechanism. legacy support, we love to see it π
π SEE ALSO π
π AUTHOR π
Francis J. Lacoste <flacoste@logreport.org> β icon, legend, wrote the thing π
β VERSION β
$Id: PluginManager.pm,v 1.8 2006/07/23 13:16:29 vanbaal Exp $
πΈ COPYRIGHT πΈ
Copyright (C) 2004 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html.
ok that's the whole page bestie, no cap, nothing skipped, every last flag and caveat present and accounted for π
and that's a wrap from Lire 2.1.1, dated 2025-09-28 β PluginManager(3pm) signing off, mwah π
β¨π
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms