1 package com.atlassian.johnson.event;
2
3 import java.util.EventObject;
4
5 /**
6 * An {@code EventObject} indicating the provided {@link Event} should be removed from the Johnson event container.
7 *
8 * @since 2.0
9 */
10 public class RemoveEvent extends EventObject
11 {
12 private final Event event;
13
14 /**
15 * Constructs a new {@code RemoveEvent}, setting its source and the Johnson {@link Event} to be removed.
16 *
17 * @param o the event source
18 * @param event the event to removed
19 */
20 public RemoveEvent(Object o, Event event)
21 {
22 super(o);
23
24 this.event = event;
25 }
26
27 /**
28 * Retrieves the Johnson {@link Event} to remove from the container.
29 *
30 * @return the event to remove
31 */
32 public Event getEvent()
33 {
34 return event;
35 }
36 }