Bolts::Role::Artifact - The role implemented by resolved artifacts
version 0.143170
An artifact can be any kind of object. However, during acquistion, the resolution phase is only performed on objects implementing this role. Resolution allows the artifact to make decisions about how to construct, inject dependencies, and cache the object.
my $resolved_artifact = $artifact->get($bag, %options);
This method is called during resolution to all the artifact to decide how to resolve the real artifact.
$artifact->such_that( isa => $type, does => $type, );
This applies type constraints to the resolved object. These are invariants that should be applied as soon as the artifact is able to do so.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
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.
To install Bolts, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bolts
CPAN shell
perl -MCPAN -e shell install Bolts
For more information on module installation, please visit the detailed CPAN module installation guide.