@ Override public void destroy ( ) throws Exception { if ( this . reporters != null ) { for ( Closeable reporter : this . reporters ) { try { reporter . close ( ) ; } catch ( Exception ex ) { LOG . warn ( "Problem stopping reporter" , ex ) ; } } } }
Called when the Spring context is closed this method stops reporters .