public static void rebindCasConfigurationProperties ( final ConfigurationPropertiesBindingPostProcessor binder , final ApplicationContext applicationContext ) { val map = applicationContext . getBeansOfType ( CasConfigurationProperties . class ) ; val name = map . keySet ( ) . iterator ( ) . next ( ) ; LOGGER . trace ( "Reloading CAS configuration via [{}]" , name ) ; val e = applicationContext . getBean ( name ) ; binder . postProcessBeforeInitialization ( e , name ) ; val bean = applicationContext . getAutowireCapableBeanFactory ( ) . initializeBean ( e , name ) ; applicationContext . getAutowireCapableBeanFactory ( ) . autowireBean ( bean ) ; LOGGER . debug ( "Reloaded CAS configuration [{}]" , name ) ; }
Rebind cas configuration properties .