NAME
decorators::providers::for_providers - A set of decorators to help write other decorators
VERSION
version 0.01
SYNOPSIS
use decorators ':for_providers';
DESCRIPTION
This is a decorator provider which contains some useful decorators for people who are writing decorator providers.
DECORATORS
Decorator
This is a TagMethod
meant to mark a subroutine as a Decorator. This decorator much be attached to a subroutine if you want it to be considered as a decorator by the system.
CreateMethod
This means that the decorator handler will create the method exclusivily. This means the method must be a bodyless method. Ideally there is only one CreateMethod
decorator attached to the method and it is the first one that is executed. If this is not the case, the decorator will likely fail to be applied.
WrapMethod
This means that the decorator handle will override, or wrap, the method. This means the method must exist already.
TagMethod
This means that the decorator is really just a tag added to the method. These typically will be processed at runtime through introspection, so can simply be no-op subroutines. As with WrapMethod
this means the method must exist already.
AUTHOR
Stevan Little <stevan@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2018 by Stevan Little.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.