NAME
Config::MVP::Reader::Finder - a reader that finds an appropriate file
VERSION
version 1.101451
DESCRIPTION
The Finder reader multiplexes many other readers that implement the Config::MVP::Reader::Findable role. It uses Module::Pluggable to search for modules, limits them to objects implementing the Findable role, and then selects the those which report that they are able to read a configuration file found in the config root directory. If exactly one findable configuration reader finds a file, it is used to read the file and the configuration sequence is returned. Otherwise, an exception is raised.
The Finder's assembler is passed to the Findable reader when it's instantiated. That means that a single subclass of Finder with its own assembler can use generic configuration readers to avoid needless, tiny subclasses.
METHODS
default_search_path
This is the default search path used to find configuration readers. This method should return a list, and by default returns:
qw(Config::MVP::Reader)
AUTHOR
Ricardo Signes <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2010 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.