![]() |
File Search | Catalog | Content Search |
Homepage: | - |
Package version: | - |
Architecture: | - |
Distribution: | Perl-CPAN |
Filename: | Aspect-1.01.tar.gz |
NAME Aspect - Aspect-Oriented Programming (AOP) for Perl SYNOPSIS use Aspect; # Run some code "Advice" before a particular function before { print "About to call create\n"; } call 'Person::create'; # Run Advice after several methods and hijack their return values after { print "Called getter/setter " . $_->sub_name . "\n"; more»
Singleton Example ================= An example of using the singleton aspect. Shows how an AOP solution requires less code, and suffers from less EEK, compared with an OOP solution. oop.pl - we want to make sure users create only one printer, per Perl interperter. And we don't want to pass it around in argument lists all over the place. more»
Wormhole Example ================ An example of using the wormhole aspect. Shows how the design degrades when a feature is added, and how refactoring to aspects improves the design. before.pl - the initial design. Our company prints documents. We have the classes Printer, SpamPrintJob, and SpamDocument. To print a job you more»
Revision history for Perl extension Aspect 1.01 Thu 9 Jun 2011 - Added experimental function inter more»
Terms of Perl itself a) the GNU General Public License as published by the Free Software Founda more»
[DIR] | Aspect-1.01/ (11) |