OO::Plugin::Class - collection for service classes.
This class is used to provide a plugin with information about the current call. In its pure form the plugin manager is using objects of this class to communicate with callbacks.
Parameters the method has been called with
Data only available to a single plugin. This data would exists strictly within one execution chain and won't be exposed to the code from other plugins.
Data shared among all the plugins. This attribute is similar to .private except this data is shared; i.e. what is set by one plugin can be read or changed by others.
method set-rc(
$!rc is copy
) returns Nil
This method sets the suggested return value for the current execution chain.
method reset-rc() returns Nil
Reset the suggested return value.
method has-rc() returns Bool
Returns True if the suggested return value has been set.
method rc() returns Mu
Suggested return value
Inherits from PluginMessage
. Used to provide information for method handlers.
Instance of the object the original method has been called upon.
Name of the method being called.
Stage of method call. Can be one of three strings: before, around, after.
The base class of all plugins.
The plugin manager object which created this plugin instance.
Plugin's fully qualified name.
Plugin's short name.
method on-event(
Str:D $name,
|
) returns Mu
Event handler.
method on-callback(
Str:D $cb-name,
OO::Plugin::Class::PluginMessage:D $msg,
|
) returns Mu
Callback handler.
OO::Plugin::Manual, OO::Plugin::Manager, OO::Plugin::Class
Vadim Belman vrurg@cpan.org