Line | |
---|
1 | package omq.common.event; |
---|
2 | |
---|
3 | import java.io.Serializable; |
---|
4 | |
---|
5 | public class EventWrapper implements Serializable { |
---|
6 | |
---|
7 | /** |
---|
8 | * |
---|
9 | */ |
---|
10 | private static final long serialVersionUID = 1L; |
---|
11 | |
---|
12 | private String type; |
---|
13 | private Event event; |
---|
14 | |
---|
15 | public EventWrapper() { |
---|
16 | } |
---|
17 | |
---|
18 | // TODO change to simpleName |
---|
19 | public EventWrapper(Event event) { |
---|
20 | this.event = event; |
---|
21 | type = event.getClass().getCanonicalName(); |
---|
22 | // type = event.getClass().getSimpleName(); |
---|
23 | } |
---|
24 | |
---|
25 | public String getType() { |
---|
26 | return type; |
---|
27 | } |
---|
28 | |
---|
29 | public void setType(String type) { |
---|
30 | this.type = type; |
---|
31 | } |
---|
32 | |
---|
33 | public Event getEvent() { |
---|
34 | return event; |
---|
35 | } |
---|
36 | |
---|
37 | public void setEvent(Event event) { |
---|
38 | this.event = event; |
---|
39 | } |
---|
40 | |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.