Add accesses to the listener list
Signed-off-by: Emmanuel Bigeon <emmanuel@bigeon.fr>
This commit is contained in:
parent
e560fcb92d
commit
9ad4a1e456
@ -310,4 +310,23 @@ public final class PluggableConsoleInput implements ConsoleInput {
|
||||
listener.disconnected();
|
||||
}
|
||||
}
|
||||
|
||||
/** Add a listener to the list of listeners.
|
||||
*
|
||||
* @param e the listener
|
||||
* @return if the listener was added
|
||||
* @see java.util.Set#add(java.lang.Object) */
|
||||
public boolean add(final DisconnexionListener e) {
|
||||
return listeners.add(e);
|
||||
}
|
||||
|
||||
/** Remove a listener from the list of listeners.
|
||||
*
|
||||
* @param o the listener
|
||||
* @return if the listener was removed
|
||||
* @see java.util.Set#remove(java.lang.Object) */
|
||||
public boolean remove(final DisconnexionListener o) {
|
||||
return listeners.remove(o);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user