jetbrains.buildServer.util
Class EventDispatcherHandlers<T extends java.util.EventListener>

java.lang.Object
  extended by jetbrains.buildServer.util.EventDispatcherHandlers<T>

public class EventDispatcherHandlers<T extends java.util.EventListener>
extends java.lang.Object

Author:
Eugene Petrenko Created: 17.03.2010 17:39:06

Constructor Summary
EventDispatcherHandlers(java.lang.Class<T> listenerClass)
           
 
Method Summary
 void addListener(T listener)
           
 void clear()
           
 java.util.List<T> getListeners()
           
 boolean hasListeners()
           
 void removeListener(T listener)
           
 java.util.Map<java.lang.reflect.Method,T[]> serialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventDispatcherHandlers

public EventDispatcherHandlers(java.lang.Class<T> listenerClass)
Method Detail

addListener

public void addListener(@NotNull
                        T listener)

removeListener

public void removeListener(@NotNull
                           T listener)

getListeners

@NotNull
public java.util.List<T> getListeners()

serialize

@NotNull
public java.util.Map<java.lang.reflect.Method,T[]> serialize()

hasListeners

public boolean hasListeners()

clear

public void clear()