MooseX::Attribute::Deflator::Registry - Registry class for attribute deflators
This class contains a registry for deflator and inflator functions.
- inflators ( isa => HashRef[CodeRef] )
- deflators ( isa => HashRef[CodeRef] )
- add_inflator( $type_constraint, $coderef )
- add_deflator( $type_constraint, $coderef )
- set_inflator( $type_constraint, $coderef )
- set_deflator( $type_constraint, $coderef )
Add a inflator/deflator function for
$type_constraint. Existing functions are overwritten.
- has_inflator( $type_constraint )
- has_deflator( $type_constraint )
- find_inflator( $type_constraint )
- find_deflator( $type_constraint )
Finds a suitable deflator/inflator by bubbling up the type hierarchy. it returns the matching type constraint, its deflator an optionally its inlined deflator if it exists.
COPYRIGHT AND LICENSE
This software is Copyright (c) 2012 by Moritz Onken.
This is free software, licensed under:
The (three-clause) BSD License