Jeffrey Ray Hallock > Gapp-App > Gapp::App::Role::HasPluginManager

Download:
Gapp-App-0.007.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.007   Source  

NAME ^

Gapp::App::Role::HasPluginManager - Role for app with managed plugins

SYNOPSIS ^

  package Foo::App;
  
  use Moose;

  extends 'Gapp::App';

  with 'Gapp::App::Role::HasPluginManager';

  sub BUILD {

    $self->plugin_manager->add_search_path( 'plugins/directory' );
    
    $self->plugin_manager->register_plugins;

  }

DESCRIPTION ^

A plugin manager object will scan a list of directories for plugins and register them with the application.

PROVIDED ATTRIBUTES ^

b<plugin_manager>
is rw
isa Gapp::App::Plugin::Manager

Plugin manager object.

AUTHORS ^

Jeffrey Ray Hallock <jeffrey.hallock at gmail dot com>

COPYRIGHT & LICENSE ^

Copyright (c) 2012 Jeffrey Ray Hallock.

    This is free software, licensed under:

    The Artistic License 2.0 (GPL Compatible)
syntax highlighting: