Add delegate method for Sone removal notification.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 May 2011 19:10:44 +0000 (21:10 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 31 May 2011 19:10:44 +0000 (21:10 +0200)
src/main/java/net/pterodactylus/sone/core/CoreListenerManager.java

index 6dbdc58..786cfb8 100644 (file)
@@ -147,6 +147,19 @@ public class CoreListenerManager extends AbstractListenerManager<Core, CoreListe
        }
 
        /**
+        * Notifies all listener that the given Sone was removed.
+        *
+        * @see CoreListener#soneRemoved(Sone)
+        * @param sone
+        *            The removed Sone
+        */
+       void fireSoneRemoved(Sone sone) {
+               for (CoreListener coreListener : getListeners()) {
+                       coreListener.soneRemoved(sone);
+               }
+       }
+
+       /**
         * Notifies all listener that the given post was removed.
         *
         * @see CoreListener#postRemoved(Post)