GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Mixin::Event::Dispatch::Methods(3) User Contributed Perl Documentation Mixin::Event::Dispatch::Methods(3)

Mixin::Event::Dispatch::Methods - importer class for applying Mixin::Event::Dispatch methods without inheritance

version 2.000

 package Role::WithEvents;
 use Moo::Role;
 use Mixin::Event::Dispatch::Methods qw(:all);

 package Some::Class;
 use Moo;
 with 'Role::WithEvents';

Provides the following Exporter tags:

Imports all known methods. Probably a good default if this is being applied to a specific role class. The methods imported may change in future, use :v2 if you want to limit to a specific list that will never change.

Supports the methods provided by the 2.000 API.
  • "invoke_event" in Mixin::Event::Dispatch
  • "subscribe_to_event" in Mixin::Event::Dispatch
  • "unsubscribe_from_event" in Mixin::Event::Dispatch
  • "add_handler_for_event" in Mixin::Event::Dispatch
  • "event_handlers" in Mixin::Event::Dispatch
  • "clear_event_handlers" in Mixin::Event::Dispatch

Imports only the bare minimum methods for subscribing/unsubscribing.
  • "invoke_event" in Mixin::Event::Dispatch
  • "subscribe_to_event" in Mixin::Event::Dispatch
  • "unsubscribe_from_event" in Mixin::Event::Dispatch
  • "event_handlers" in Mixin::Event::Dispatch

Tom Molesworth <cpan@perlsite.co.uk>

Copyright Tom Molesworth 2011-2015, based on code originally part of EntityModel. Licensed under the same terms as Perl itself.
2015-09-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.