IOC 0.29
Sponsored Links
IOC 0.29 Ranking & Summary
File size:
0.048 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
877
Date added:
2007-06-06
Publisher:
Stevan Little
IOC 0.29 description
IOC Perl module is a lightweight IOC (Inversion of Control) framework.
SYNOPSIS
use IOC;
my $container = IOC::Container->new();
$container->register(IOC::Service::Literal->new(log_file => "logfile.log"));
$container->register(IOC::Service->new(logger => sub {
my $c = shift;
return FileLogger->new($c->get(log_file));
}));
$container->register(IOC::Service->new(application => sub {
my $c = shift;
my $app = Application->new();
$app->logger($c->get(logger));
return $app;
}));
$container->get(application)->run();
This module provide a lightweight IOC or Inversion of Control framework. Inversion of Control, sometimes called Dependency Injection, is a component management style which aims to clean up component configuration and provide a cleaner, more flexible means of configuring a large application.
What is Inversion of Control
My favorite 10 second description of Inversion of Control is, "Inversion of Control is the inverse of Garbage Collection". This comes from Howard Lewis Ship, the creator of the HiveMind IoC Java framework. His point is that the way garbage collection takes care of the destruction of your objects, Inversion of Control takes care of the creation of your objects. However, this does not really explain why IoC is useful, for that you will have to read on.
You may be familiar with a similar style of component management called a Service Locator, in which a global Service Locator object holds instances of components which can be retrieved by key. The common style is to create and configure each component instance and add it into the Service Locator. The main drawback to this approach is the aligning of the dependencies of each component prior to inserting the component into the Service Locator. If your dependency requirements change, then your initialization code must change to accommodate. This can get quite complex when you need to re-arrange initialization ordering and such. The Inversion of Control style alleviates this problem by taking a different approach.
With Inversion of Control, you configure a set of individual Service objects, which know how to initialize their particular components. If these components have dependencies, the will resolve them through the IOC framework itself. This results in a loosely coupled configuration which places no expectation upon initialization order. If your dependency requirements change, you need only adjust your Services initialization routine, the ordering will adapt on its own.
SYNOPSIS
use IOC;
my $container = IOC::Container->new();
$container->register(IOC::Service::Literal->new(log_file => "logfile.log"));
$container->register(IOC::Service->new(logger => sub {
my $c = shift;
return FileLogger->new($c->get(log_file));
}));
$container->register(IOC::Service->new(application => sub {
my $c = shift;
my $app = Application->new();
$app->logger($c->get(logger));
return $app;
}));
$container->get(application)->run();
This module provide a lightweight IOC or Inversion of Control framework. Inversion of Control, sometimes called Dependency Injection, is a component management style which aims to clean up component configuration and provide a cleaner, more flexible means of configuring a large application.
What is Inversion of Control
My favorite 10 second description of Inversion of Control is, "Inversion of Control is the inverse of Garbage Collection". This comes from Howard Lewis Ship, the creator of the HiveMind IoC Java framework. His point is that the way garbage collection takes care of the destruction of your objects, Inversion of Control takes care of the creation of your objects. However, this does not really explain why IoC is useful, for that you will have to read on.
You may be familiar with a similar style of component management called a Service Locator, in which a global Service Locator object holds instances of components which can be retrieved by key. The common style is to create and configure each component instance and add it into the Service Locator. The main drawback to this approach is the aligning of the dependencies of each component prior to inserting the component into the Service Locator. If your dependency requirements change, then your initialization code must change to accommodate. This can get quite complex when you need to re-arrange initialization ordering and such. The Inversion of Control style alleviates this problem by taking a different approach.
With Inversion of Control, you configure a set of individual Service objects, which know how to initialize their particular components. If these components have dependencies, the will resolve them through the IOC framework itself. This results in a loosely coupled configuration which places no expectation upon initialization order. If your dependency requirements change, you need only adjust your Services initialization routine, the ordering will adapt on its own.
IOC 0.29 Screenshot
IOC 0.29 Keywords
IOC
Service Locator
IOC 0.29
IOC Perl
Inversion of Control
Perl module
inversion
control
framework
new
component
service
IOC 0.29
Libraries
Programming
Bookmark IOC 0.29
IOC 0.29 Copyright
WareSeeker periodically updates pricing and software information of IOC 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 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
inversion of control pattern
spring inversion of control
inversion of control design pattern
inversion of control c++
what is inversion of control
java inversion of control
ioc inversion of control
coldfusion inversion of control
inversion of control dependency injection
controlling
inversion bench
birth control
inversion tables
control techniques
inversion equipment
controller
inversion table
control room
Related Software
AudioCD is a Perl module for basic Audio CD control. Free Download
EduKT, a multimedia content builder, which allows easly create interactive books with graphics, music, text, etc. Free Download
IOC::Proxy::Interfaces is a IOC::Proxy subclasss to proxy objects with a given interface. Free Download
DCE::UUID is a Perl module with misc UUID functions. Free Download
XWork is a generic command pattern implementation and inversion of control (IoC) container. Free Download
Uncle Unc is a generic framework for network-based services. Free Download
ServingXML is a markup language for expressing XML pipelines. Free Download
Winamp::Control is a Perl module to control winamp (over the network). Free Download
Latest Software
Popular Software
Favourite Software