source: branches/objectmqListeners/src/main/java/omq/common/event/EventWrapper.java @ 87

Last change on this file since 87 was 44, checked in by stoda, 11 years ago

Objectmq converted to maven project

File size: 652 bytes
Line 
1package omq.common.event;
2
3import java.io.Serializable;
4
5public 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.