public synchronized int addSubscriber ( String eventName , IGenericEvent < T > subscriber ) { List < IGenericEvent < T >> subscribers = getSubscribers ( eventName , true ) ; subscribers . add ( subscriber ) ; return subscribers . size ( ) ; }
Adds a subscriber to the specified event .