- Timestamp:
- 08/08/06 13:43:51 (2 years ago)
- Files:
-
- trunk/src/main/java/net/schst/EventDispatcher/EventDispatcher.java (modified) (11 diffs)
- trunk/src/main/java/net/schst/EventDispatcher/EventListener.java (modified) (1 diff)
- trunk/src/main/java/net/schst/EventDispatcher/EventListenerCollection.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/BlackListCheck.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/CallbackListener.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/Customer.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/DebugHandler.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/EchoHandler.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/Example1.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/Example2.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/ExampleAutoRemove.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/ExampleGlobal.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/ExampleIntrospect.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/ExampleQueue.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/Examples/ExampleRemove.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/tests/AddListenersTestCase.java (modified) (4 diffs)
- trunk/src/test/java/net/schst/EventDispatcher/tests/AutoRemoveTestCase.java (modified) (2 diffs)
- trunk/src/test/java/net/schst/EventDispatcher/tests/CancellingEventsTestCase.java (modified) (4 diffs)
- trunk/src/test/java/net/schst/EventDispatcher/tests/EventNamesTestCase.java (modified) (2 diffs)
- trunk/src/test/java/net/schst/EventDispatcher/tests/EventQueueTestCase.java (modified) (3 diffs)
- trunk/src/test/java/net/schst/EventDispatcher/tests/GetEventListenersTestCase.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/tests/RemoveListenerTestCase.java (modified) (8 diffs)
- trunk/src/test/java/net/schst/EventDispatcher/tests/ResetTestCase.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/tests/TriggerEventTestCase.java (modified) (6 diffs)
- trunk/src/test/java/net/schst/EventDispatcher/tests/helpers/CaptureEventListener.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/tests/helpers/CountCaughtEventsListener.java (modified) (1 diff)
- trunk/src/test/java/net/schst/EventDispatcher/tests/helpers/DummyEventListener.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/java/net/schst/EventDispatcher/EventDispatcher.java
r43 r44 108 108 * @param eventName name of the event to listen on 109 109 * @param listener instance of the event listener 110 * @throws Throwable111 */ 112 public void addListener(String eventName, EventListener listener) throws Throwable{110 * @throws Exception 111 */ 112 public void addListener(String eventName, EventListener listener) throws Exception { 113 113 this.addListener(eventName, listener, false); 114 114 } … … 120 120 * @param listener instance of the event listener 121 121 * @param autoRemove whether to remove the listener after the first event it has handled 122 * @throws Throwable123 */ 124 public void addListener(String eventName, EventListener listener, boolean autoRemove) throws Throwable{122 * @throws Exception 123 */ 124 public void addListener(String eventName, EventListener listener, boolean autoRemove) throws Exception { 125 125 if (!this.listeners.containsKey(eventName)) { 126 126 this.listeners.put(eventName, new EventListenerCollection()); … … 181 181 * @param eventName name of the event to listen on 182 182 * @param listener instance of the event listener 183 * @throws Throwable184 */ 185 public void addGlobalListener(EventListener listener) throws Throwable{183 * @throws Exception 184 */ 185 public void addGlobalListener(EventListener listener) throws Exception { 186 186 this.addGlobalListener(listener, false); 187 187 } … … 193 193 * @param listener instance of the event listener 194 194 * @param autoRemove whether to remove the listener after the first event it has handled 195 * @throws Throwable196 */ 197 public void addGlobalListener(EventListener listener, boolean autoRemove) throws Throwable{195 * @throws Exception 196 */ 197 public void addGlobalListener(EventListener listener, boolean autoRemove) throws Exception { 198 198 this.globalListeners.addListener(listener, autoRemove); 199 199 … … 242 242 * @param e Event that will be triggered 243 243 * @return The event object 244 * @throws Throwable245 */ 246 public Event triggerEvent(Event e) throws Throwable{244 * @throws Exception 245 */ 246 public Event triggerEvent(Event e) throws Exception { 247 247 return this.propagate(e, false); 248 248 } … … 255 255 * @param queue Whether to queue the event 256 256 * @return The event object 257 * @throws Throwable258 */ 259 public Event triggerEvent(Event e, boolean queue) throws Throwable{257 * @throws Exception 258 */ 259 public Event triggerEvent(Event e, boolean queue) throws Exception { 260 260 return this.propagate(e, queue); 261 261 } … … 268 268 * @param name name of the event 269 269 * @return The Event object 270 * @throws Throwable271 */ 272 public Event triggerEvent(String name) throws Throwable{270 * @throws Exception 271 */ 272 public Event triggerEvent(String name) throws Exception { 273 273 Event e = new Event(name); 274 274 return this.propagate(e, false); … … 281 281 * @param queue Whether to queue the event 282 282 * @return The Event object 283 * @throws Throwable284 */ 285 public Event triggerEvent(String name, boolean queue) throws Throwable{283 * @throws Exception 284 */ 285 public Event triggerEvent(String name, boolean queue) throws Exception { 286 286 Event e = new Event(name); 287 287 return this.propagate(e, queue); … … 295 295 * @param context Context of the event 296 296 * @return The Event object 297 * @throws Throwable298 */ 299 public Event triggerEvent(String name, boolean queue, Object context) throws Throwable{297 * @throws Exception 298 */ 299 public Event triggerEvent(String name, boolean queue, Object context) throws Exception { 300 300 Event e = new Event(name, context); 301 301 return this.propagate(e, queue); … … 310 310 * @param userInfo Any additional information for the event 311 311 * @return The Event object 312 * @throws Throwable313 */ 314 public Event triggerEvent(String name, boolean queue, Object context, Object userInfo) throws Throwable{312 * @throws Exception 313 */ 314 public Event triggerEvent(String name, boolean queue, Object context, Object userInfo) throws Exception { 315 315 Event e = new Event(name, context, userInfo); 316 316 return this.propagate(e, queue); … … 324 324 * @return The modified event 325 325 */ 326 private Event propagate(Event e, boolean queue) throws Throwable{326 private Event propagate(Event e, boolean queue) throws Exception { 327 327 if (this.listeners.containsKey(e.getName())) { 328 328 EventListenerCollection col = (EventListenerCollection)this.listeners.get(e.getName()); trunk/src/main/java/net/schst/EventDispatcher/EventListener.java
r43 r44 5 5 */ 6 6 public interface EventListener { 7 public void handleEvent(Event e) throws Throwable;7 public void handleEvent(Event e) throws Exception; 8 8 } trunk/src/main/java/net/schst/EventDispatcher/EventListenerCollection.java
r43 r44 37 37 * @return event 38 38 */ 39 public Event propagate(Event e) throws Throwable{39 public Event propagate(Event e) throws Exception { 40 40 ArrayList<EventListener> remove = new ArrayList<EventListener>(); 41 41 for (int i = 0; i < this.listeners.size(); i++) { trunk/src/test/java/net/schst/EventDispatcher/Examples/BlackListCheck.java
r43 r44 9 9 public class BlackListCheck implements EventListener { 10 10 11 public void handleEvent(Event e) throws Throwable{11 public void handleEvent(Event e) throws Exception { 12 12 Customer temp = (Customer)e.getContext(); 13 13 if (temp.getMandant() == 1) { trunk/src/test/java/net/schst/EventDispatcher/Examples/CallbackListener.java
r43 r44 54 54 * Handle the event 55 55 */ 56 public void handleEvent(Event event) throws Throwable{56 public void handleEvent(Event event) throws Exception { 57 57 Class cl; 58 58 Method me; trunk/src/test/java/net/schst/EventDispatcher/Examples/Customer.java
r43 r44 25 25 } 26 26 27 public boolean login() throws Throwable{27 public boolean login() throws Exception { 28 28 Event e = (Event)this.disp.triggerEvent("onLogin", true, this); 29 29 if (e.isCancelled()) { trunk/src/test/java/net/schst/EventDispatcher/Examples/DebugHandler.java
r43 r44 21 21 * Handle the event 22 22 */ 23 public void handleEvent(Event e) throws Throwable{23 public void handleEvent(Event e) throws Exception { 24 24 System.out.println("Event caught by '" + this.name + "'"); 25 25 System.out.println("Event-name : " + e.getName()); trunk/src/test/java/net/schst/EventDispatcher/Examples/EchoHandler.java
r43 r44 9 9 public class EchoHandler implements EventListener { 10 10 11 public void handleEvent(Event e) throws Throwable{11 public void handleEvent(Event e) throws Exception { 12 12 Customer cus = (Customer)e.getContext(); 13 13 System.out.println("Event handled: " + e.getName() + "("+cus.getName()+")"); trunk/src/test/java/net/schst/EventDispatcher/Examples/Example1.java
r43 r44 11 11 */ 12 12 public class Example1 { 13 public static void main(String[] args) throws Throwable{13 public static void main(String[] args) throws Exception { 14 14 EventListener echo = new EchoHandler(); 15 15 EventDispatcher disp = EventDispatcher.getInstance(); trunk/src/test/java/net/schst/EventDispatcher/Examples/Example2.java
r43 r44 8 8 */ 9 9 public class Example2 { 10 public static void main(String[] args) throws Throwable{10 public static void main(String[] args) throws Exception { 11 11 12 12 Customer cus1 = new Customer(1, "Stephan Schmidt"); trunk/src/test/java/net/schst/EventDispatcher/Examples/ExampleAutoRemove.java
r43 r44 9 9 public class ExampleAutoRemove { 10 10 11 public static void main(String[] args) throws Throwable{11 public static void main(String[] args) throws Exception { 12 12 EventDispatcher disp = EventDispatcher.getInstance(); 13 13 trunk/src/test/java/net/schst/EventDispatcher/Examples/ExampleGlobal.java
r43 r44 12 12 public class ExampleGlobal { 13 13 14 public static void main(String[] args) throws Throwable{14 public static void main(String[] args) throws Exception { 15 15 EventDispatcher disp = EventDispatcher.getInstance(); 16 16 trunk/src/test/java/net/schst/EventDispatcher/Examples/ExampleIntrospect.java
r43 r44 13 13 public class ExampleIntrospect { 14 14 15 public static void main(String[] args) throws Throwable{15 public static void main(String[] args) throws Exception { 16 16 EventListener echo1 = new DebugHandler(); 17 17 EventListener echo2 = new DebugHandler(); trunk/src/test/java/net/schst/EventDispatcher/Examples/ExampleQueue.java
r43 r44 9 9 public class ExampleQueue { 10 10 11 public static void main(String[] args) throws Throwable{11 public static void main(String[] args) throws Exception { 12 12 Customer cus1 = new Customer(1, "Stephan Schmidt"); 13 13 cus1.login(); trunk/src/test/java/net/schst/EventDispatcher/Examples/ExampleRemove.java
r43 r44 11 11 public class ExampleRemove { 12 12 13 public static void main(String[] args) throws Throwable{13 public static void main(String[] args) throws Exception { 14 14 EventDispatcher disp = EventDispatcher.getInstance(); 15 15 trunk/src/test/java/net/schst/EventDispatcher/tests/AddListenersTestCase.java
r43 r44 17 17 * Test method for 'net.schst.EventDispatcher.EventDispatcher.addListener(String, EventListener)' 18 18 */ 19 public void testAddListenerStringEventListener() throws Throwable{19 public void testAddListenerStringEventListener() throws Exception { 20 20 this.dispatcher.addListener("onTest", new DummyEventListener()); 21 21 } … … 24 24 * Test method for 'net.schst.EventDispatcher.EventDispatcher.addListener(String, EventListener, boolean)' 25 25 */ 26 public void testAddListenerStringEventListenerBoolean() throws Throwable{26 public void testAddListenerStringEventListenerBoolean() throws Exception { 27 27 this.dispatcher.addListener("onTest", new DummyEventListener(), true); 28 28 this.dispatcher.addListener("onTest", new DummyEventListener(), false); … … 32 32 * Test method for 'net.schst.EventDispatcher.EventDispatcher.addGlobalListener(EventListener)' 33 33 */ 34 public void testAddGlobalListenerEventListener() throws Throwable{34 public void testAddGlobalListenerEventListener() throws Exception { 35 35 this.dispatcher.addGlobalListener(new DummyEventListener()); 36 36 } … … 39 39 * Test method for 'net.schst.EventDispatcher.EventDispatcher.addGlobalListener(EventListener, boolean)' 40 40 */ 41 public void testAddGlobalListenerEventListenerBoolean() throws Throwable{41 public void testAddGlobalListenerEventListenerBoolean() throws Exception { 42 42 this.dispatcher.addGlobalListener(new DummyEventListener(), true); 43 43 this.dispatcher.addGlobalListener(new DummyEventListener(), false); trunk/src/test/java/net/schst/EventDispatcher/tests/AutoRemoveTestCase.java
r43 r44 10 10 * Test method for 'net.schst.EventDispatcher.EventDispatcher.addListener(String, EventListener, boolean)' 11 11 */ 12 public void testAddListenerStringEventListenerBoolean() throws Throwable{12 public void testAddListenerStringEventListenerBoolean() throws Exception { 13 13 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 14 14 … … 25 25 * Test method for 'net.schst.EventDispatcher.EventDispatcher.addGlobalListener(EventListener, boolean)' 26 26 */ 27 public void testAddGlobalListenerEventListenerBoolean() throws Throwable{27 public void testAddGlobalListenerEventListenerBoolean() throws Exception { 28 28 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 29 29 CountCaughtEventsListener listener = new CountCaughtEventsListener(); trunk/src/test/java/net/schst/EventDispatcher/tests/CancellingEventsTestCase.java
r43 r44 23 23 * Test cancelling a simple event without context 24 24 * or user information 25 * @throws Throwable25 * @throws Exception 26 26 */ 27 public void testSimpleEvent() throws Throwable{27 public void testSimpleEvent() throws Exception { 28 28 this.dispatcher.addListener("onTest", new CancellingEventListener()); 29 29 Event event = this.dispatcher.triggerEvent("onTest"); … … 34 34 * Test cancelling a simple event without context 35 35 * or user information 36 * @throws Throwable36 * @throws Exception 37 37 */ 38 public void testContextEvent() throws Throwable{38 public void testContextEvent() throws Exception { 39 39 this.dispatcher.addListener("onTest", new CancellingEventListener()); 40 40 Event event = this.dispatcher.triggerEvent("onTest", false, new Object()); … … 45 45 * Test cancelling a simple event without context 46 46 * or user information 47 * @throws Throwable47 * @throws Exception 48 48 */ 49 public void testContextAndUserInfoEvent() throws Throwable{49 public void testContextAndUserInfoEvent() throws Exception { 50 50 this.dispatcher.addListener("onTest", new CancellingEventListener()); 51 51 Event event = this.dispatcher.triggerEvent("onTest", false, new Object(), new Object()); … … 60 60 class CancellingEventListener implements EventListener { 61 61 62 public void handleEvent(Event e) throws Throwable{62 public void handleEvent(Event e) throws Exception { 63 63 e.cancel(); 64 64 } trunk/src/test/java/net/schst/EventDispatcher/tests/EventNamesTestCase.java
r43 r44 9 9 private EventDispatcher dispatcher; 10 10 11 public void setUp() { 11 public void setUp() throws Exception { 12 super.setUp(); 12 13 this.dispatcher = EventDispatcher.getInstance(); 13 14 } … … 16 17 * Test method for 'net.schst.EventDispatcher.EventDispatcher.getRegisteredEventNames()' 17 18 */ 18 public void testGetRegisteredEventNames() throws Throwable{19 public void testGetRegisteredEventNames() throws Exception { 19 20 this.dispatcher.addListener("onTest", new CountCaughtEventsListener()); 20 21 this.dispatcher.addListener("onFoo", new CountCaughtEventsListener()); trunk/src/test/java/net/schst/EventDispatcher/tests/EventQueueTestCase.java
r43 r44 11 11 * Test method for 'net.schst.EventDispatcher.EventDispatcher.triggerEvent(Event, boolean)' 12 12 */ 13 public void testTriggerEventObject() throws Throwable{13 public void testTriggerEventObject() throws Exception { 14 14 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 15 15 … … 39 39 * Test method for 'net.schst.EventDispatcher.EventDispatcher.triggerEvent(String, boolean)' 40 40 */ 41 public void testTriggerEventString() throws Throwable{41 public void testTriggerEventString() throws Exception { 42 42 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 43 43 … … 61 61 * Test method for 'net.schst.EventDispatcher.EventDispatcher.triggerEvent(Event, boolean)' 62 62 */ 63 public void testTriggerEventQueueFlag() throws Throwable{63 public void testTriggerEventQueueFlag() throws Exception { 64 64 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 65 65 trunk/src/test/java/net/schst/EventDispatcher/tests/GetEventListenersTestCase.java
r43 r44 17 17 * Test method for 'net.schst.EventDispatcher.EventDispatcher.getEventListeners(String)' 18 18 */ 19 public void testGetEventListeners() throws Throwable{19 public void testGetEventListeners() throws Exception { 20 20 this.dispatcher.addListener("onTest", new CountCaughtEventsListener()); 21 21 TestCase.assertNotNull(this.dispatcher.getEventListeners("onTest")); trunk/src/test/java/net/schst/EventDispatcher/tests/RemoveListenerTestCase.java
r43 r44 10 10 * Test method for 'net.schst.EventDispatcher.EventDispatcher.removeEventListener(String, String)' 11 11 */ 12 public void testRemoveEventListenerStringString() throws Throwable{12 public void testRemoveEventListenerStringString() throws Exception { 13 13 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 14 14 … … 24 24 * Test method for 'net.schst.EventDispatcher.EventDispatcher.removeEventListener(String, EventListener)' 25 25 */ 26 public void testRemoveEventListenerStringEventListener() throws Throwable{26 public void testRemoveEventListenerStringEventListener() throws Exception { 27 27 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 28 28 … … 38 38 * Test method for 'net.schst.EventDispatcher.EventDispatcher.removeGlobalEventListener(EventListener)' 39 39 */ 40 public void testRemoveGlobalEventListenerEventListener() throws Throwable{40 public void testRemoveGlobalEventListenerEventListener() throws Exception { 41 41 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 42 42 … … 53 53 * Test method for 'net.schst.EventDispatcher.EventDispatcher.removeGlobalEventListener(String)' 54 54 */ 55 public void testRemoveGlobalEventListenerString() throws Throwable{55 public void testRemoveGlobalEventListenerString() throws Exception { 56 56 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 57 57 … … 68 68 * Test method for 'net.schst.EventDispatcher.EventDispatcher.removeGlobalEventListener(String)' 69 69 */ 70 public void testRemoveUnknownEventListenerEventListener() throws Throwable{70 public void testRemoveUnknownEventListenerEventListener() throws Exception { 71 71 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 72 72 … … 82 82 * Test method for 'net.schst.EventDispatcher.EventDispatcher.removeGlobalEventListener(String)' 83 83 */ 84 public void testRemoveUnknownEventListenerString() throws Throwable{84 public void testRemoveUnknownEventListenerString() throws Exception { 85 85 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 86 86 … … 95 95 * Test method for 'net.schst.EventDispatcher.EventDispatcher.removeGlobalEventListener(EventListener)' 96 96 */ 97 public void testRemoveUnknownGlobalEventListenerEventListener() throws Throwable{97 public void testRemoveUnknownGlobalEventListenerEventListener() throws Exception { 98 98 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 99 99 … … 107 107 * Test method for 'net.schst.EventDispatcher.EventDispatcher.removeGlobalEventListener(String)' 108 108 */ 109 public void testRemoveUnknownGlobalEventListenerString() throws Throwable{109 public void testRemoveUnknownGlobalEventListenerString() throws Exception { 110 110 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); 111 111 trunk/src/test/java/net/schst/EventDispatcher/tests/ResetTestCase.java
r43 r44 10 10 * Test method for 'net.schst.EventDispatcher.EventDispatcher.reset()' 11 11 */ 12 public void testReset() throws Throwable{12 public void testReset() throws Exception { 13 13 14 14 EventDispatcher dispatcher = EventDispatcher.getDetachedInstance(); trunk/src/test/java/net/schst/EventDispatcher/tests/TriggerEventTestCase.java
r43 r44 22 22 * Test method for 'net.schst.EventDispatcher.EventDispatcher.triggerEvent(Event)' 23 23 */ 24 public void testTriggerEventEvent() throws Throwable{24 public void testTriggerEventEvent() throws Exception { 25 25 String context = new String("context"); 26 26 String userInfo = new String("userInfo"); … … 33 33 * Test method for 'net.schst.EventDispatcher.EventDispatcher.triggerEvent(Event, boolean)' 34 34 */ 35 public void testTriggerEventEventBoolean() throws Throwable{35 public void testTriggerEventEventBoolean() throws Exception { 36 36 String context = new String("context"); 37 37 String userInfo = new String("userInfo"); … … 46 46 * Test method for 'net.schst.EventDispatcher.EventDispatcher.triggerEvent(String)' 47 47 */ 48 public void testTriggerEventString() throws Throwable{48 public void testTriggerEventString() throws Exception { 49 49 Event returned = this.dispatcher.triggerEvent("onTest"); 50 50 TestCase.assertEquals("onTest", returned.getName()); … … 54 54 * Test method for 'net.schst.EventDispatcher.EventDispatcher.triggerEvent(String, boolean)' 55 55 */ 56 public void testTriggerEventStringBoolean() throws Throwable{56 public void testTriggerEventStringBoolean() throws Exception { 57 57 Event returned = this.dispatcher.triggerEvent("onTest", false); 58 58 TestCase.assertEquals("onTest", returned.getName()); … … 64 64 * Test method for 'net.schst.EventDispatcher.EventDispatcher.triggerEvent(String, boolean, Object)' 65 65 */ 66 public void testTriggerEventStringBooleanObject() throws Throwable{66 public void testTriggerEventStringBooleanObject() throws Exception { 67 67 String context = new String("context"); 68 68 Event returned = this.dispatcher.triggerEvent("onTest", false, context); … … 75 75 * Test method for 'net.schst.EventDispatcher.EventDispatcher.triggerEvent(String, boolean, Object, Object)' 76 76 */ 77 public void testTriggerEventStringBooleanObjectObject() throws Throwable{77 public void testTriggerEventStringBooleanObjectObject() throws Exception { 78 78 String context = new String("context"); 79 79 String userInfo = new String("userInfo"); trunk/src/test/java/net/schst/EventDispatcher/tests/helpers/CaptureEventListener.java
r43 r44 10 10 private ArrayList<Event> events = new ArrayList<Event>(); 11 11 12 public void handleEvent(Event e) throws Throwable{12 public void handleEvent(Event e) throws Exception { 13 13 this.events.add(e); 14 14 } trunk/src/test/java/net/schst/EventDispatcher/tests/helpers/CountCaughtEventsListener.java
r43 r44 8 8 private int caughtEvents = 0; 9 9 10 public void handleEvent(Event e) throws Throwable{10 public void handleEvent(Event e) throws Exception { 11 11 this.caughtEvents++; 12 12 } trunk/src/test/java/net/schst/EventDispatcher/tests/helpers/DummyEventListener.java
r43 r44 6 6 public class DummyEventListener implements EventListener { 7 7 8 public void handleEvent(Event e) throws Throwable{8 public void handleEvent(Event e) throws Exception { 9 9 } 10 10 }
