@ EventListener public void handleConfigurationModifiedEvent ( final CasConfigurationModifiedEvent event ) { if ( this . contextRefresher == null ) { LOGGER . warn ( "Unable to refresh application context, since no refresher is available" ) ; return ; } if ( event . isEligibleForContextRefresh ( ) ) { LOGGER . info ( "Received event [{}]. Refreshing CAS configuration..." , event ) ; Collection < String > keys = null ; try { keys = contextRefresher . refresh ( ) ; LOGGER . debug ( "Refreshed the following settings: [{}]." , keys ) ; } catch ( final Exception e ) { LOGGER . trace ( e . getMessage ( ) , e ) ; } finally { rebind ( ) ; LOGGER . info ( "CAS finished rebinding configuration with new settings [{}]" , ObjectUtils . defaultIfNull ( keys , new ArrayList <> ( 0 ) ) ) ; } } }
Handle configuration modified event .