Main > Programming > Libraries >

IOC::Proxy::Interfaces 0.29

IOC::Proxy::Interfaces 0.29

Sponsored Links

IOC::Proxy::Interfaces 0.29 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.048 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 869
Date added: 2007-06-07
Publisher: Stevan Little

IOC::Proxy::Interfaces 0.29 description

IOC::Proxy::Interfaces is a IOC::Proxy subclasss to proxy objects with a given interface.

SYNOPSIS

use IOC::Proxy::Interfaces;

my $proxy_server = IOC::Proxy->new({
interface => AnInterface,
# ... add other config values here
});

$proxy_server->wrap($object);
# our $object is now proxied, but only the
# methods which are part of the interface
# will work, all others will throw exceptions

$object->method_in_interface(); # works as normal

$object->method_not_in_interface(); # will thrown an exception

This is a subclass of IOC::Proxy which allows for the partial proxing of an object. It will only proxy the methods of a given interface, all other methods will throw a IOC::MethodNotFound exception. This could be used to (in a very weird way) emulate the concept of upcasting in Java, it is also somewhat like the idea of using interfaces with Dynamic Proxies in Java as well (see the article link in "SEE ALSO").

This proxy can be useful if you need to have an object strictly conform to a particular interface in a particular situation. The interface class is also pushed onto the proxies @ISA so that it will respond to UNIVERSAL::isa($object, Interface) correctly. Keep in mind that there is no need for the object being proxied to have the interface in its @ISA prior to being proxied. The proxy is dynamic and only requires that the object conform to the interface when it is being wraped but the proxy object.

IOC::Proxy::Interfaces 0.29 Screenshot

Advertisements

IOC::Proxy::Interfaces 0.29 Keywords

Bookmark IOC::Proxy::Interfaces 0.29

Hyperlink code:
Link for forum:

IOC::Proxy::Interfaces 0.29 Copyright

WareSeeker periodically updates pricing and software information of IOC::Proxy::Interfaces 0.29 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 IOC::Proxy::Interfaces 0.29 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
Class::Interfaces is a Per module for defining interface classes inline. Free Download
Perlbug::Interface::Web is a web interface to perlbug database. Free Download
Antivirus and content filtering proxy server Free Download
IOC Perl module is a lightweight IOC (Inversion of Control) framework. Free Download
IMAP Proxy server is a caching IMAP proxy server. Free Download
Ircproxy is a transparent IRC content filtering application. Free Download
cingb project is a Gameboy emulator. Free Download
interface preprocessor for PHP are methods to create user interfaces in PHP. Free Download