public void addListener ( InvalidationListener listener ) { synchronized ( hsInvalidationListeners ) { hsInvalidationListeners . add ( listener ) ; invalidationListenerCount = hsInvalidationListeners . size ( ) ; bUpdateInvalidationListener = true ; } }
This adds a new listener to the Invalidation listener .