Copyright (c) 2010 Daniel Murphy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
Created at 2:19:39 AM, Mar 12, 2010
This stores all the listener information, dispatches events
to the corresponding listeners. To dispatch events use
Also, look at
private volatile boolean running = false;
Adds a listener for the given event key. If the listener is already listening
to that key, then nothing is done.
Checks to see if the listener is listening to the given key.
gets the listeners for the given event key.
removes a listener from the given key.
- true if the listener was removed, and false if it wasn't there to
Split off the current MVC thread, all queued events and future
event dispatches are handled by a new MVC thread, while this one
runs to completion. If the thread calling this is not the current
core MVC thread, then an exception is thrown
Sets the global event monitor, which is called before and after each event is
Stops the dispatch thread, dispatching any remaining events
before cleanly returning. Thread automatically gets started
when new events are dispatched
Manually starts the dispatch thread.