KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > core > event > IdEvent


1 /*
2  * Created on 21-jun-2005
3  * This software is OSI Certified Open Source Software.
4  * OSI Certified is a certification mark of the Open Source Initiative. The
5  * license (Mozilla version 1.0) can be read at the MMBase site. See
6  * http://www.MMBase.org/license
7  */

8 package org.mmbase.core.event;
9
10 import java.io.*;
11 import java.util.*;
12
13 import org.mmbase.util.HashCodeUtil;
14 import org.mmbase.util.logging.Logger;
15 import org.mmbase.util.logging.Logging;
16
17
18 /**
19  * Very generic event type, which only adds an 'id' property. This can be used for events on all
20  * kind of objects which are somehow identified by an ID. Of course, the default event types like
21  * 'NEW', 'CHANGE' and 'DELETE' can very well make sense.
22  *
23  * @author Michiel Meeuwissen
24  * @since MMBase-1.8
25  * @version $Id: IdEvent.java,v 1.1 2006/04/18 13:03:30 michiel Exp $
26  */

27 public class IdEvent extends Event {
28
29
30     private static final long serialVersionUID = 1L;
31
32     private static final Logger log = Logging.getLoggerInstance(IdEvent.class);
33
34     private String JavaDoc id;
35
36
37     /**
38     **/

39     public IdEvent(String JavaDoc machineName, int type, String JavaDoc id) {
40         super(machineName, type);
41         this.id = id;
42     }
43
44
45     public String JavaDoc getId() {
46         return id;
47     }
48
49 }
50
Popular Tags