NAME
Module::New::Loader
SYNOPSIS
DESCRIPTION
my $loader = Module::New::Loader->new('SomeClass');
my $object = $loader->load('Recipe', 'Foo', @args);
# the $object should hopefully be SomeClass::Recipe::Foo,
# or Module::New::Recipe::Foo if the former is not found.
# (or croaks if the latter is not found, either.)
METHODS
This is a dedicated module loader used internally.
new
may take some extra namespaces, and creates a loader object.
load_class, reload_class
looks for a module under the registered namespaces and loads it.
load
loads and creates an instance of the specified module with extra arguments.
AUTHOR
Kenichi Ishigaki, <ishigaki at cpan.org>
COPYRIGHT AND LICENSE
Copyright (C) 2007-2009 by Kenichi Ishigaki.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.