Name
Class::Usul::TraitFor::LoadingClasses - Load classes at runtime
Version
0.11.$Revision: 245 $
Synopsis
use Class::Usul::Moose;
with qw(Class::Usul::TraitFor::LoadingClasses);
Description
A Moose::Role which load classes at runtime
Subroutines/Methods
build_subcomponents
__PACKAGE__->build_subcomponents( $base_class );
Class method that allows us to define components that inherit from the base class at runtime
ensure_class_loaded
$self->ensure_class_loaded( $some_class );
Require the requested class, throw an error if it doesn't load
load_component
$self->load_component( $child, @parents );
Ensures that each component is loaded then fixes @ISA for the child so that it inherits from the parents
setup_plugins
@plugins = $self->setup_plugins( $class, $config_ref );
Load the given list of plugins and have the supplied class inherit from them. Returns an array ref of available plugins
Configuration and Environment
None
Diagnostics
None
Dependencies
- Class::MOP
- Class::Usul::Constants
- Class::Usul::Functions
- Module::Pluggable::Object
- Moose::Role
- Try::Tiny
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Acknowledgements
Larry Wall - For the Perl programming language
Author
Peter Flanigan, <Support at RoxSoft.co.uk>
License and Copyright
Copyright (c) 2013 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE