NAME

Bolts::Meta::Initializer - Store a path and parameters for acquisition

VERSION

version 0.143171

DESCRIPTION

Describes an initializer, which is just a path and set of parameters used to make a call to "acquire" in Bolts::Role::Locator within a Bolts::Role::Initializer for any attributed tagged with the Bolts::Initializer trait.

ATTRIBUTES

path

This is the path that is passed into the constructor.

parameters

This is a reference to the hash of parameters passsed into the constructor (or an empty hash if none was passed).

METHODS

new

my $init = Bolts::Meta::Initailizer->new(@path, \%parameters);

The BUILDARGS for this object has been modified so that the constructor takes arguments in the same form as "acquire" in Bolts::Role::Locator.

get

my (@path, \%parameters) = $init->get;

Returns the contents of this object in a form that can be passed directly on to "acquire" in Bolts::Role::Locator.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

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.