|
What this is
Other links
The source code/* * Sun Public License Notice * * The contents of this file are subject to the Sun Public License * Version 1.0 (the "License"). You may not use this file except in * compliance with the License. A copy of the License is available at * http://www.sun.com/ * * The Original Code is NetBeans. The Initial Developer of the Original * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun * Microsystems, Inc. All Rights Reserved. */ package org.netbeans.api.mdr.events; /** Event source interface implemented by all the repository * objects and MDRepository. Enables other objects * to register for listening to any repository events. * The objects that have to be registered for event * notifications need to implement {@link MDRChangeListener} * or {@link MDRPreChangeListener} interface.
All the events are propagated recursively till they reach the repository object (e.g. each * instance event is as a result of propagation always fired on the instance itself, * on its class proxy, on its immediate package proxy, on all other package proxies containing * the immediate package proxy to the outermost package proxy and at the end on the repository containing * instance). * *In addition, any event is fired only once for each listener (so no matter how many objects * on the event's propagation path is a listener registered on - e.g. on both * class proxy and its instances - it receives each notification only once per event). * *Listeners may be added specifically for certain events only by calling
* {@link #addListener(MDRChangeListener, int) addListener(MDRChangeListener, int)}.
* If instead {@link #addListener(MDRChangeListener) addListener(MDRChangeListener)}
* is used for listener addition and, hence, no event mask is speficied, the listener
* receives all events which are propagated to the source it is registered for.
*
* @author Martin Matula
* @author Holger Krug.
*/
public interface MDRChangeSource {
/** Registers a listener for receiving all event notifications.
*
*
* @param listener Object that implements {@link MDRChangeListener} interface.
*/
public void addListener(MDRChangeListener listener);
/** Registers a listener for receiving notifications about events the type
* of which matches |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.