Exemplo n.º 1
0
 /**
  * Unregister a specific listener from all handler lists.
  *
  * @param listener listener to unregister
  */
 public static void unregisterAll(Listener listener) {
   synchronized (allLists) {
     for (HandlerList h : allLists) {
       h.unregister(listener);
     }
   }
 }
Exemplo n.º 2
0
 /**
  * Unregister a specific plugin's listeners from all handler lists.
  *
  * @param plugin plugin to unregister
  */
 public static void unregisterAll(EventPlugin plugin) {
   synchronized (allLists) {
     for (HandlerList h : allLists) {
       h.unregister(plugin);
     }
   }
 }