Peco::Container

Peco::Container is a light inversion of Control (IoC) container.
Download

Peco::Container Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Richard Hundt
  • Publisher web site:
  • http://search.cpan.org/~rhundt/

Peco::Container Tags


Peco::Container Description

Peco::Container is a light inversion of Control (IoC) container. Peco::Container is a light inversion of Control (IoC) container.SYNOPSIS my $c = Peco::Container->new; $c->register( 'my_key', 'My::Class' ); $c->register( 'my_key', 'My::Class', ); $c->register( 'my_key', 'My::Class', , 'create' ); $c->register( 'my_key', 'My::Class', , 'create', { %attrs } ); $c->register( 'my_key', 'My::Class', undef, 'create' ); $c->register( 'my_key', 'My::Class', undef, 'create', { %attrs } ); $c->register( 'my_key', 'My::Class', , undef, { %attrs } ); my $instance = $c->get('my_key'); my @instances = $c->get_all(); $c->has('my_key') ? 1 : 0; $c->is_empty ? 1 : 0; $c->multicast( 'method', @args );Peco::Container is a small, flexible Inversion of Control (IoC) container supporting both Constructor Injection and Setter Injection patterns, as well prototype services (factories) and multicasting. Requirements: · Perl


Peco::Container Related Software