KiokuDB::TypeMap::Entry - Role for L entries


KiokuDB documentation  | view source Contained in the KiokuDB distribution.

Index


NAME

Top

KiokuDB::TypeMap::Entry - Role for KiokuDB::TypeMap entries

SYNOPSIS

Top

    package KiokuDB::TypeMap::Foo;
    use Moose;

    with qw(KiokuDB::TypeMap::Entry);

    # or just use KiokuDB::TypeMap::Entry::Std

    sub compile {
        ...
    }

DESCRIPTION

Top

This is the role consumed by all typemap entries.

REQUIRED METHODS

Top

compile $class

This method is called by KiokuDB::TypeMap::Resolver for a given class, and should return a KiokuDB::TypeMap::Entry::Compiled object for collapsing and expanding the object.

KiokuDB::TypeMap::Entry::Std provides a more concise way of defining typemap entries.


KiokuDB documentation  | view source Contained in the KiokuDB distribution.