void fireConnectionClosed ( ) { ConnectionEvent evt = null ; // Copy the listener list so the listener can remove itself during this method call ConnectionEventListener [ ] local = listeners . toArray ( new ConnectionEventListener [ 0 ] ) ; for ( ConnectionEventListener listener : local ) { if ( evt == null ) { evt = createConnectionEvent ( null ) ; } listener . connectionClosed ( evt ) ; } }
Used to fire a connection closed event to all listeners .