-
Notifications
You must be signed in to change notification settings - Fork 1
jasontang/module-pluggable-singleton
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Module::Pluggable::SinUseroContributed Perl DocModule::Pluggable::Singleton(3)
NAME
Module::Pluggable::Singleton - call/return single plugins on demand
using shortened names
VERSION
Version 0.01
SYNOPSIS
package MyPluggable;
use Module::Pluggable::Singleton;
my $plugins = MyPluggable->plugin;
my $nick = MyPluggable->call('Robert','nickname',$person->full_name);
DESCRIPTION
METHODS
find($name)
Return the instance of the plugin with the given name
$plugin = $logic->find('Bar');
plugin($name)
Return an array of the shortened available plugins or the full name of
the module when a short name is given
my @plugin_short = $logic->plugin
my $plugin_long = $logic->plugin($name);
call($plugin_name, $method, $params)
Using the plugin $plugin_name call $method with $params
$rv = $logic->call($plugin_name, $method, $params)
AUTHOR
Jason Tang, "<tang.jason.ch at gmail.com>"
BUGS
Please report any bugs or feature requests to
"bug-module-pluggable-singleton at rt.cpan.org", or through the web
interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Module-Pluggable-Singleton>.
I will be notified, and then you'll automatically be notified of
progress on your bug as I make changes.
SEE ALSO
Module::Pluggable::Object
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Module::Pluggable::Singleton
You can also look for information at:
· RT: CPAN's request tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Module-Pluggable-Singleton>
· AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Module-Pluggable-Singleton>
· CPAN Ratings
<http://cpanratings.perl.org/d/Module-Pluggable-Singleton>
· Search CPAN
<http://search.cpan.org/dist/Module-Pluggable-Singleton/>
LICENSE AND COPYRIGHT
Copyright 2011 Jason Tang.
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.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published