The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

eris::role::plugin - Common interface for implementing an eris plugin

VERSION

version 0.006

SYNOPSIS

Sprinkled into other plugins in the eris project to set expectatations for the plugin loaders

    package eris::role::context;

    use Moo::Role;
    with qw( eris::role::plugin );

ATTRIBUTES

name

The name of the plugin. Defaults to stripping the plugin namespace from the object's class name and replacing '::' withn an underscore.

priority

An integer representing the priority ordering of the plugin in loading, lower priority will appear in the beginning of the plugins list. Defaults to 50.

enabled

Boolean indicating if the plugin is enabled by default. Defaults to true. The eris::dictionary::eris::debug uses this set to false to prevent it's data from accidentally entering the default schemas.

namespace

The primary namespace for these plugins. This is used to auto_trim it from the plugin's name for simpler config templates.

This is a required parameter.

SEE ALSO

eris::role::pluggable, eris::role::context, eris::role::decoder, eris::role::dictionary eris::role::schema

AUTHOR

Brad Lhotsky <brad@divisionbyzero.net>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2015 by Brad Lhotsky.

This is free software, licensed under:

  The (three-clause) BSD License