On Wed, Jun 20, 2012 at 4:21 PM, Yanick Champoux via RT
<bug-MooseX-Storage@rt.cpan.org> wrote:
Show quoted text> Wed Jun 20 16:21:50 2012: Request 77931 was acted upon.
> Transaction: Ticket created by YANICK
> Queue: MooseX-Storage
> Subject: Allow serialization of non-M::S-enabled sub-objects
> Broken in: (no value)
> Severity: Wishlist
> Owner: Nobody
> Requestors: yanick+cpan@babyl.dyndns.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=77931 >
>
>
> A branch of MooseX::Storage that allows to serialize sub-objects even if
> they don't have a pac-k() method is at
>
https://github.com/yanick/MooseX-Storage/tree/serialize-attribute
>
> The serialization is dealt with via a 'serializer' parameter given to
> the attribute, and the deserialization is done via the type's coercing,
> if available. See the test t/400-attribute_serialize.t for a complete
> demonstration.
Can't this be done by registering custom Type handlers? See the docs
in
https://metacpan.org/module/MooseX::Storage::Engine for an example.
-Chris