public void addNamedEvent ( String shortName , Class < ? extends ComponentSystemEvent > cls ) { String key = shortName ; Collection < Class < ? extends ComponentSystemEvent > > eventList ; // Per the spec, if the short name is missing, generate one. if ( shortName == null ) { key = getFixedName ( cls ) ; } eventList = events . get ( key ) ; if ( eventList == null ) { // First event registered to this short name. eventList = new LinkedList < Class < ? extends ComponentSystemEvent > > ( ) ; events . put ( key , eventList ) ; } eventList . add ( cls ) ; }
Registers a named event .