All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.inftec.ju.util.event.EventNotifier Maven / Gradle / Ivy

There is a newer version: 6.1-4
Show newest version
package ch.inftec.ju.util.event;

import java.util.EventListener;

/**
 * Interface for an event notifier.
 * 

* Handles adding and removing of listeners. * * @author Martin * * @param Type of the EventListeners */ public interface EventNotifier { /** * Adds the specified listener to this notifier. * @param listener Listener to be notified */ public abstract void addListener(T listener); /** * Adds the specified listener with a weak reference. That means that when all * hard references to the listener are lost, it will be removed from the notifier * automatically when the garbage collector disposes of the listener. * @param listener Listener to be added with a weak reference */ public abstract void addWeakListener(T listener); /** * Removes the specified listener from this notifier. * @param listener Listener to be removed */ public abstract void removeListener(T listener); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy