Kaiten::Container 0.37

GPL


Kaiten::Container 0.37

Kaiten::Container is a Perl module to resolve dependency injection conception in easiest way ever. You are just create some code first and put it on kaiten in named container. Later you take it by name and got yours code result fresh and crispy.

No more humongous multi-level dependency configuration, service provider and etc.

You got what you put on, no more, no less.

Ok, little bit more - Kaiten::Container run |probe| sub every time when you want to take something to ensure all working properly.

And another one - KC try to re-use |handler| return if it requested.

 use Kaiten::Container;

 my $config = {
 ExampleP => {
 handler => sub { return DBI->connect( "dbi:ExampleP:", "", "", { RaiseError => 1 } ) or die $DBI::errstr },
 probe => sub { shift->ping() },
 settings => { reusable => 1 }
 }
 };

 my $container = Kaiten::Container->new( init => $config );
 my $dbh = $container->get_by_name('ExampleP');


All done, now we are have container and may get DB handler on call. Simple!


Product's homepage

Requirements:

· Perl

Download and use it now: Kaiten::Container 0.37 free download

Add a review

Tell us your experience with Kaiten::Container 0.37

Related programsOur Recommendations

WordProcessor 3.0

WordProcessor is my first test application developed with Kommander and is a simple word

Download

uREST 0.1

uREST is a REST-style interface for the HEYU X10 application. Now you can write your own

Download

anybox.buildbot.openerp 0.5

anybox.buildbot.openerp is a Python module that aims to be a turnkey buildbot master setup for a

Download

CuteMupen 0.1.1

CuteMupen is a graphical user interface for the Mupen64Plus Nintendo 64 emulator. It is

Download

Konquest 1.1

Konquest is the KDE 4 version of Gnu-Lactic Konquest. Players conquer other planets by sending

Download

Soundcloud Comment Hider 2.0

With this extension you can automatically hide comments on Soundcloud. Nowadays you can always

Download

DeLorean-Dark 1.55 / 2.56

DeLorean-Dark is a dark GTK3 theme for the GNOME 3 desktop environment that includes:- Gtk2

Download

FeedParser 5.1.2

FeedParser is a Python library to parse RSS and Atom feeds in Python. 4000 unit tests. Open

Download

AmSTblue_FLATTEN Ubuntu 11.10

AmSTblue_FLATTEN is a modified version of the Ambiance theme from the Ubuntu 11.10 (Oneiric Ocelot)

Download

Clue 0.5

Clue is an ANSI C compiler targeting high level languages.What?Clue is an ANSI C compiler (C89,

Download


Thumbnail of Kaiten::Container 0.37

Rating:

3 stars

Price: FREE

Publisher/Developer: Meettya

Release Date: Jun 23, 2012

View Program Details

Top Downloadslast week