X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Ffcp%2FFcpListenerManager.java;h=a25f3bf4448a8939869b8b80c7a460f82a865908;hb=fed333217dc45a47f6eabea6a5b29aed987cd160;hp=4f3b9dd3a7bae2aea41bc504528508777c8e6082;hpb=b171126719c983b590c51f22eb60a3e0afdf1fb9;p=jFCPlib.git diff --git a/src/main/java/net/pterodactylus/fcp/FcpListenerManager.java b/src/main/java/net/pterodactylus/fcp/FcpListenerManager.java index 4f3b9dd..a25f3bf 100644 --- a/src/main/java/net/pterodactylus/fcp/FcpListenerManager.java +++ b/src/main/java/net/pterodactylus/fcp/FcpListenerManager.java @@ -18,14 +18,18 @@ package net.pterodactylus.fcp; -import net.pterodactylus.util.event.AbstractListenerManager; +import java.util.List; +import java.util.concurrent.CopyOnWriteArrayList; /** * Manages FCP listeners and event firing. * * @author David ‘Bombe’ Roden <bombe@pterodactylus.net> */ -public class FcpListenerManager extends AbstractListenerManager { +public class FcpListenerManager { + + private final FcpConnection source; + private final List listeners = new CopyOnWriteArrayList(); /** * Creates a new listener manager. @@ -34,7 +38,23 @@ public class FcpListenerManager extends AbstractListenerManager getListeners() { + return listeners; } /** @@ -418,6 +438,12 @@ public class FcpListenerManager extends AbstractListenerManager