public void fire ( EventDefinition eventDefinition , Event eventDetails ) { if ( eventDefinition . getType ( ) == EventDefinition . TYPE_POST ) { fire ( listenersPost , eventDefinition , eventDetails ) ; } else { fire ( listeners , eventDefinition , eventDetails ) ; } }
Fire a new event and run all the listeners .