NAME
Peco::Service - Service specifications for Peco IoC containers
SYNOPSIS
use Peco::Service;
$service = Peco::Service->new( $class, \@depends, $create, \%attrs );
$service = Peco::Service::Factory->new( \&subroutine, \@depends );
$service = Peco::Service::Constant->new( $value );
DESCRIPTION
Service specifications for Peco IoC containers. See Peco::Container for usage details.
SERVICE TYPES
Peco::Service
A generic service registration class.
Peco::Service::Factory
Factory service registration class. Takes a coderef which is called each time this service is accessed.
Peco::Service::Constant
For constant or scalar values.
SEE ALSO
Peco::Container, IOC::Container, http://www.picocontainer.org
ACKNOWLEDGMENTS
Most of this code is ported from Rico, which is a Ruby implementation of PicoContainer... which is Java
AUTHOR
Richard Hundt
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.