public interface EventListenerGroup<T> extends Serializable
Contract for a groups of events listeners for a particular event type.
Modifier and Type | Method and Description |
---|---|
void |
addDuplicationStrategy(DuplicationStrategy strategy)
Mechanism to more finely control the notion of duplicates.
|
void |
appendListener(T listener) |
void |
appendListeners(T... listeners) |
void |
clear() |
int |
count() |
EventType<T> |
getEventType()
Retrieve the event type associated with this groups of listeners.
|
boolean |
isEmpty()
Are there no listeners registered?
|
Iterable<T> |
listeners() |
void |
prependListener(T listener) |
void |
prependListeners(T... listeners) |
EventType<T> getEventType()
Retrieve the event type associated with this groups of listeners.
boolean isEmpty()
Are there no listeners registered?
int count()
void addDuplicationStrategy(DuplicationStrategy strategy)
Mechanism to more finely control the notion of duplicates. <p/> For example, say you are registering listeners for an extension library. This extension library could define a "marker interface" which indicates listeners related to it and register a strategy that checks against that marker interface.
strategy
- The duplication strategyvoid appendListener(T listener)
void appendListeners(T... listeners)
void prependListener(T listener)
void prependListeners(T... listeners)
void clear()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.