Bolts::Blueprint::Role::Injector - Tags a blueprint as being usable during injection
This role tags a class as a blueprint that may be used for injection. The difference between a common blueprint and an injector blueprint is that the parameters passed for an injector will always be passed as a hash in list form. Whereas a regular blueprint may receive any kind of argument list. Also, the injection parameters are not as well targeted or filtered as they are during regular blueprint resolution.
A blueprint may implement this instead of Bolts::Blueprint if it could be useful to during injection and ignores or is able to process parameters as a hash.
my $exists = $blueprint->exists($bag, $name, %params);
Given a set of parameters, this returns whether or not the value provided by the blueprint exists or not. This is used to determine whether or not the injector should even be run.
Andrew Sterling Hanenkamp <email@example.com>
This software is copyright (c) 2014 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.