1MooseX::Storage::EngineU(s3e)r Contributed Perl DocumentaMtoioosneX::Storage::Engine(3)
2
3
4

NAME

6       MooseX::Storage::Engine - The meta-engine to handle collapsing and
7       expanding objects
8

VERSION

10       version 0.53
11

DESCRIPTION

13       There really aren't any major user serviceable parts here. However the
14       typical use case is adding new non-Moose classes to the type registry
15       for serialization. Here is an example of this for DateTime objects.
16       This assumes a "DateTime" type has been registered.
17
18           MooseX::Storage::Engine->add_custom_type_handler(
19               'DateTime' => (
20                   expand   => sub { DateTime::Format::ISO8601->new->parser_datetime(shift) },
21                   collapse => sub { (shift)->iso8601 },
22               )
23           );
24

METHODS

26   Accessors
27       class
28       object
29       storage
30       seen
31
32   API
33       expand_object
34       collapse_object
35
36   ...
37       collapse_attribute
38       collapse_attribute_value
39       expand_attribute
40       expand_attribute_value
41       check_for_cycle_in_collapse
42       check_for_cycle_in_expansion
43       map_attributes
44
45   Type Constraint Handlers
46       find_type_handler ($type)
47       find_type_handler_for ($name)
48       add_custom_type_handler ($name, %handlers)
49       remove_custom_type_handler ($name)
50

SUPPORT

52       Bugs may be submitted through the RT bug tracker
53       <https://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-Storage> (or
54       bug-MooseX-Storage@rt.cpan.org <mailto:bug-MooseX-
55       Storage@rt.cpan.org>).
56
57       There is also a mailing list available for users of this distribution,
58       at <http://lists.perl.org/list/moose.html>.
59
60       There is also an irc channel available for users of this distribution,
61       at "#moose" on "irc.perl.org" <irc://irc.perl.org/#moose>.
62

AUTHORS

64       •   Chris Prather <chris.prather@iinteractive.com>
65
66       •   Stevan Little <stevan.little@iinteractive.com>
67
68       •   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
69
71       This software is copyright (c) 2007 by Infinity Interactive, Inc.
72
73       This is free software; you can redistribute it and/or modify it under
74       the same terms as the Perl 5 programming language system itself.
75
76
77
78perl v5.34.0                      2021-07-22        MooseX::Storage::Engine(3)
Impressum