public int getSubscribersCount ( EventPublisher source ) { GenericEventDispatcher < ? > dispatcherObject = dispatchers . get ( source ) ; if ( dispatcherObject == null ) { return 0 ; } else { return dispatcherObject . getListenersCount ( ) ; } }
Gets the number of listeners registered for a publisher