Allows for listening and reacting to events triggered by other commands
Type Params | Return Type | Name and description |
---|---|---|
|
void |
after(java.lang.String commandName, groovy.lang.Closure callable) Register to listen for an event that runs before the given command |
|
void |
before(java.lang.String commandName, groovy.lang.Closure callable) Register to listen for an event that runs before the given command |
|
void |
notify(java.lang.String eventName, java.lang.Object... args) Notify of an event |
|
void |
on(java.lang.String eventName, groovy.lang.Closure callable) Register to listen for an event |
Register to listen for an event that runs before the given command
eventName
- The name of the eventcallable
- The closure that is executed when the event is firedRegister to listen for an event that runs before the given command
eventName
- The name of the eventcallable
- The closure that is executed when the event is firedNotify of an event
eventName
- The name of the eventargs
- The arguments to the eventRegister to listen for an event
eventName
- The name of the eventcallable
- The closure that is executed when the event is fired