C:\Perl_PPM\Bread-Board-0.33\blib/lib/Bread/Board/Service/Deferred/Thunk.pm |
Bread::Board::Service::Deferred::Thunk
version 0.33
This class is used when resolving dependencies that need parameters.
Since the service needs parameters to instantiate its value, and no
values were provided for those parameters, the best we can do is use a
coderef that will accept the parameters and call get
on the
service.
inflate
my $service_value = $deferred_thunk->inflate(%service_parameters);
This will call get
on the service, passing it all the
%service_parameters
. Normal parameter validation and service
lifecycle apply.
Stevan Little <stevan@iinteractive.com>
Please report any bugs or feature requests on the bugtracker website https://github.com/stevan/BreadBoard/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
This software is copyright (c) 2015 by Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
C:\Perl_PPM\Bread-Board-0.33\blib/lib/Bread/Board/Service/Deferred/Thunk.pm |