Eve::EventMap - maps events to event handlers.
my $event_map = Eve::EventMap->new(); $event_map->bind( event_class => 'Eve::Event::Foo', handler => $some_handler); $event_map->bind( event_class => 'Eve::Event::Bar', handler => $another_handler); my $event = Eve::Event::Foo->new(event_map => $event_map);
Eve::EventMap is the facility on the one hand used to bind events to event handlers, on the other hand to extract handlers that need to be run when a certain event is triggered.
Binds an event class to an event handler.
event_class
an event class (Eve::Event derivative)
handler
a handler instance (Eve::EventHandler::Class derivative).
Eve::Exception::Duplicate
trying to bind a handler duplicating one that has already been bound to the event.
Returns handler list for an event.
event
an event instance we are requesting handlers for.
Unified list of handlers bound to the event and to all its ancestors. Note that if one handler is bound to an event and its ancestors it will be returned only once.
Copyright 2012 Igor Zinovyev.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Eve, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Eve
CPAN shell
perl -MCPAN -e shell install Eve
For more information on module installation, please visit the detailed CPAN module installation guide.