public class AbstractResourceDescriptionChangeEventSource extends java.lang.Object implements IResourceDescription.Event.Source
Modifier | Constructor and Description |
---|---|
protected |
AbstractResourceDescriptionChangeEventSource() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IResourceDescription.Event.Listener listener)
Add a listener to the event source.
|
void |
addListeners(java.util.Collection<IResourceDescription.Event.Listener> listeners) |
void |
notifyListeners(IResourceDescription.Event event)
Notify listeners about the given event.
|
void |
removeListener(IResourceDescription.Event.Listener listener)
Immediately removes a registered listener from the source.
|
void |
removeListeners(java.util.Collection<IResourceDescription.Event.Listener> listeners) |
protected AbstractResourceDescriptionChangeEventSource()
public void addListener(IResourceDescription.Event.Listener listener)
IResourceDescription.Event.Source
#addListener(Listener)
will not affect the number of events that the listener receives.
#removeListener(Listener)
will remove the listener immediately independently from the number of
invocations of #addListener(Listener)
for the given listener.addListener
in interface IResourceDescription.Event.Source
listener
- the listener to be registered. May not be null
.public void addListeners(java.util.Collection<IResourceDescription.Event.Listener> listeners)
public void removeListener(IResourceDescription.Event.Listener listener)
IResourceDescription.Event.Source
#removeListener(Listener)
is called during a notification, the removed listener will still receive the event. If the listener has
not been registered before, the #removeListener(Listener)
does nothing.removeListener
in interface IResourceDescription.Event.Source
listener
- the listener to be removed. May not be null
.public void removeListeners(java.util.Collection<IResourceDescription.Event.Listener> listeners)
public void notifyListeners(IResourceDescription.Event event)
IResourceDescription.Event.Source
Notify listeners about the given event.
notifyListeners
in interface IResourceDescription.Event.Source
event
- the fired event. My not be null
.