public boolean hasSubscribers ( String eventName , boolean exact ) { while ( ! StringUtils . isEmpty ( eventName ) ) { if ( hasSubscribers ( eventName ) ) { return true ; } else if ( exact ) { return false ; } else { eventName = stripLevel ( eventName ) ; } } return false ; }
Returns true If the event has subscribers .