Rand Stats

The uploading author of cpan:VRURG does not match the META author of github:vrurg.

OO::Plugin

cpan:VRURG

NAME

OO::Plugin – framework for working with OO plugins.

SYNOPSIS

use OO::Plugin;
use OO::Plugin::Manager;

class Foo is pluggable {
    has $.attr;
    method bar is pluggable {
        return 42;
    }
}

plugin Fubar {
    method a-bar ( $msg ) is plug-around( Foo => 'bar' ) {
        $msg.set-rc( pi ); # Will override &Foo::bar return value and prevent its execution.
    }
}

my $manager = OO::Plugin::Manager.new.initialize;
my $instance = $manager.create( Foo, attr => 'some value' );
say $instance.bar;  # 3.141592653589793

DESCRIPTION

With this framework any application can have highly flexible and extensible plugin subsystem with which plugins would be capable of:

The framework also supports:

Not yet supported but planned for the future is plugin compatibility management.

Read more in OO::Plugin::Manual.

SEE ALSO

OO::Plugin::Manual, OO::Plugin, OO::Plugin::Manager, OO::Plugin::Class

AUTHOR

Vadim Belman vrurg@cpan.org