public void addEventListener ( EventListener listener ) throws IllegalArgumentException { if ( _eventListeners == null ) _eventListeners = new ArrayList ( ) ; if ( listener instanceof ComponentListener || listener instanceof LifeCycleListener ) { if ( log . isDebugEnabled ( ) ) log . debug ( "addEventListener: " + listener ) ; _eventListeners = LazyList . add ( _eventListeners , listener ) ; } }
Add a server event listener .