Name
Web::Components::Role - Attributes used when instantiating a Web::Components object
Synopsis
use Moo;
with 'Web::Components::Role';
Description
Attributes used when instantiating a Web::Components object
Configuration and Environment
Defines the following attributes;
components
-
A hash reference of component object references. This is not fully populated until all of the components have been loaded. It can be used by components to discover other dependant components
config
-
A required object or hash reference
encoding
-
A non empty simple string that defaults to the value of the configuration attribute of the same name. Used to set input and output decoding / encoding
log
-
A required object reference of type
Logger
. The log object should support thelog
call as well as the usual log level calls moniker
-
A required non numeric simple string. This is the component name. It is used to uniquely identify a component in the component collections held by the role Web::Components::Loader
Subroutines/Methods
BUILDARGS
-
If supplied with an object reference called
application
theconfig
andlog
attribute values will be set from it if they are otherwise undefined
Diagnostics
None
Dependencies
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to http://rt.cpan.org/NoAuth/Bugs.html?Dist=Web-Components. Patches are welcome
Acknowledgements
Larry Wall - For the Perl programming language
Author
Peter Flanigan, <pjfl@cpan.org>
License and Copyright
Copyright (c) 2017 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