NAME
Class::Component - plugin base for pluggable component framework
SYNOPSIS
package MyClass::Plugin::Hello;
use strict;
use warnings;
use base 'Class::Component::Plugin';
sub hello :Method {
my($self, $context, $args) = @_;
'hello'
}
sub hello_hook :Hook('hello') {
my($self, $context, $args) = @_;
'hook hello'
}
ATTRIBUTES
- Method
-
register_method is automatically done.
- Hook
-
register_hook is automatically done.
AUTHOR
Kazuhiro Osawa <ko@yappo.ne.jp>
SEE ALSO
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.