IOC::Proxy::Interfaces 0.29
Sponsored Links
IOC::Proxy::Interfaces 0.29 Ranking & Summary
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.
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
IOC
Interfaces 0.29
to proxy
interface
proxy
object
given
0.29
objects
IOC::Proxy::Interfaces
IOCProxyInterfaces
IOC::Proxy::Interfaces 0.29
Libraries
Programming
Bookmark IOC::Proxy::Interfaces 0.29
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
myspace falling objects
business objects
objects in the rear view mirror may appear closer than they are
hidden objects games
falling objects
object lessons
interface fabrics
proxy definition
sims 2 objects
wow interface
hidden object games
sims objects
proxy avoidance
interface security
objectives for resumes
objective
interfacelift
proxy sites
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
Latest Software
Popular Software
Favourite Software