Main > Programming > Libraries >

WWW::Mechanize::Pluggable 1.01

WWW::Mechanize::Pluggable 1.01

Sponsored Links

WWW::Mechanize::Pluggable 1.01 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.044 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 797
Date added: 2007-08-20
Publisher: Joe McMahon

WWW::Mechanize::Pluggable 1.01 description

WWW::Mechanize::Pluggable provides all of the same functionality of WWW::Mechanize, but adds support for plugins using Module::Pluggable; this means that any module named WWW::Mechanize::Plugin::whatever... will be found and loaded when WWW::Mechanize::Pluggable is loaded.

Big deal, you say. Well, it becomes a big deal in conjunction with WWW::Mechanize::Pluggables other feature: plugin hooks. When plugins are loaded, their import() methods can call WWW::Mechanize::Pluggables prehook and posthook methods. These methods add callbacks to the plugin code in WWW::Mechanize::Pluggables methods. These callbacks can act before a method or after it, and have to option of short-circuiting the call to the WWW::Mechanize::Pluggable method altogether.

These methods receive whatever parameters the WWW::Mechanize::Pluggable methods received, plus a reference to the actvive Mech object.

All other extensions to WWW::Mechanize::Pluggable are handled by the plugins.

SUBCLASSING

Subclassing this class is not recommended; partly because the method redispatch we need to do internally doesnt play well with the standard Perl OO model, and partly because you should be using plugins and hooks instead.

In WWW::Mechanize, it is recommended that you extend functionality by subclassing WWW::Mechanize, because theres no other way to extend the class. With Module::Pluggable support, it is easy to load another method directly into WWW::Mechanize::Pluggables namespace; it then appears as if it had always been there. In addition, the pre_hook() and post_hook() methods provide a way to intercept a call and replace it with your output, or to tack on further processing at the end of a standard method (or even a plugin!).

The advantage of this is in not having a large number of subclasses, all of which add or alter WWW::Mechanizes function, and all of which have to be loaded if you want them available in your code. With WWW::Mechanize::Pluggable, one simply installs the desired plugins and they are all automatically available when you use WWW::Mechanize::Pluggable.

Configuration is a possible problem area; if three different plugins all attempt to replace get(), only one will win. Its better to create more sophisticated methods that call on lower-level ones than to alter existing known behavior.

WWW::Mechanize::Pluggable 1.01 Screenshot

Advertisements

WWW::Mechanize::Pluggable 1.01 Keywords

Bookmark WWW::Mechanize::Pluggable 1.01

Hyperlink code:
Link for forum:

WWW::Mechanize::Pluggable 1.01 Copyright

WareSeeker periodically updates pricing and software information of WWW::Mechanize::Pluggable 1.01 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of WWW::Mechanize::Pluggable 1.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
WWW::Mechanize::Plugin::Cache is an automatic request caching for WWW::Mechanize::Pluggable. Free Download
WWW::Mechanize is a handy web browsing in a Perl object. Free Download
WWW::Mechanize::Plugin::HelloWorld is a sample WWW::Mechanize::Pluggable plugin. Free Download
WWW::Mechanize::Examples is a Perl module with sample programs that use WWW::Mechanize. Free Download
WWW::Mechanize::Plugin::Snapshot is a snapshot the Mech objects state. Free Download
WWW::Mechanize::Shell is an interactive shell for WWW::Mechanize. Free Download
WWW::Yahoo::Groups::Mechanize is a Perl module to control WWW::Mechanize for WYG. Free Download
App::SimpleScan::Plugin::Retry is a Perl module to implement retry pragma/command line option. Free Download