@ Override public void addEventListener ( EventListener listener ) { if ( listener instanceof SessionListener ) { sessionListeners . add ( ( SessionListener ) listener ) ; } if ( listener instanceof SessionAttributeListener ) { sessionAttributeListeners . add ( ( SessionAttributeListener ) listener ) ; } }
Adds an event listener for session - related events .