01: package org.nemesis.forum.event;
02:
03: /**
04: * @author dlaurent
05: *
06: *
07: */
08: public class ForumEvent {
09:
10: private Object source;
11: private Class objectType;
12:
13: public ForumEvent(Object source) {
14: this .source = source;
15: this .objectType = source.getClass();
16:
17: }
18:
19: /**
20: * Objet ayant déclenché l'évenement
21: */
22: public Object getSource() {
23: return source;
24: }
25:
26: /**
27: * Classe de l'objet ayant déclenché l'évenement
28: */
29: public Class getObjectType() {
30: return objectType;
31: }
32:
33: }
|