IOC::Service::Parameterized - An IOC Service object which accepts a set of parameters for the instance
This is just like IOC::Service::Prototype, expect that it will accepts a set of key/value parameters to the instance method. It is used to support IOC::Service::Parameterized.
instance
+--------------+ | IOC::Service | +--------------+ | ^ | +-----------------------------+ | IOC::Service::Parameterized | +-----------------------------+
It does not make any sense to have ConstructorInjection or SetterInjection subclasses of this, so they will probably never get created (at least not by me).
This method returns the literal value held by the service object based on the parameters.
This just makes sure that our service is always being added to IOC::Container::Parameterized container objects. Otherwise the parameterization wouldn't work.
A parameterized service does not support being deferred.
None that I am aware of. Of course, if you find a bug, let me know, and I will be sure to fix it.
I use Devel::Cover to test the code coverage of my tests, see the CODE COVERAGE section of IOC for more information.
stevan little, <stevan@iinteractive.com>
Copyright 2004-2007 by Infinity Interactive, Inc.
http://www.iinteractive.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install IOC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IOC
CPAN shell
perl -MCPAN -e shell install IOC
For more information on module installation, please visit the detailed CPAN module installation guide.