Peco::Service - Service specifications for Peco IoC containers
use Peco::Service; $service = Peco::Service->new( $class, \@depends, $create, \%attrs ); $service = Peco::Service::Factory->new( \&subroutine, \@depends ); $service = Peco::Service::Constant->new( $value );
Service specifications for Peco IoC containers. See Peco::Container for usage details.
A generic service registration class.
Factory service registration class. Takes a coderef which is called each time this service is accessed.
For constant or scalar values.
Peco::Container, IOC::Container, http://www.picocontainer.org
Most of this code is ported from Rico, which is a Ruby implementation of PicoContainer... which is Java
Richard Hundt
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Peco::Service, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Peco::Service
CPAN shell
perl -MCPAN -e shell install Peco::Service
For more information on module installation, please visit the detailed CPAN module installation guide.