01: /**
02: * $RCSfile$
03: * $Revision: 7175 $
04: * $Date: 2007-02-16 11:50:15 -0800 (Fri, 16 Feb 2007) $
05: *
06: * Copyright (C) 2004-2005 Jive Software. All rights reserved.
07: *
08: * This software is published under the terms of the GNU Public License (GPL),
09: * a copy of which is included in this distribution.
10: */package org.jivesoftware.util;
11:
12: import java.util.Map;
13:
14: /**
15: * Interface to listen for property events. Use the
16: * {@link org.jivesoftware.util.PropertyEventDispatcher#addListener(PropertyEventListener)}
17: * method to register for events.
18: *
19: * @author Matt Tucker
20: */
21: public interface PropertyEventListener {
22:
23: /**
24: * A property was set. The parameter map <tt>params</tt> will contain the
25: * the value of the property under the key <tt>value</tt>.
26: *
27: * @param property the name of the property.
28: * @param params event parameters.
29: */
30: public void propertySet(String property, Map<String, Object> params);
31:
32: /**
33: * A property was deleted.
34: *
35: * @param property the name of the property deleted.
36: * @param params event parameters.
37: */
38: public void propertyDeleted(String property,
39: Map<String, Object> params);
40:
41: /**
42: * An XML property was set. The parameter map <tt>params</tt> will contain the
43: * the value of the property under the key <tt>value</tt>.
44: *
45: * @param property the name of the property.
46: * @param params event parameters.
47: */
48: public void xmlPropertySet(String property,
49: Map<String, Object> params);
50:
51: /**
52: * An XML property was deleted.
53: *
54: * @param property the name of the property.
55: * @param params event parameters.
56: */
57: public void xmlPropertyDeleted(String property,
58: Map<String, Object> params);
59:
60: }
|