- SERVICE TYPES
- SEE ALSO
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.
Most of this code is ported from Rico, which is a Ruby implementation of PicoContainer... which is Java
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.