-
Andy Wilkinson authored
refresh can only ever be called with a ConfigurableApplicationContext and we want to evolve the refresh API to reflect that. This commit takes the first step by overloading refresh(ApplicationContext) with a new refresh(ConfigurationApplicationContext) method and deprecating refresh(ApplicationContext). Where the call to refresh is made, the argument is cast to ApplicationContext to ensure that refresh(ApplicationContext) is called. This ensures that any existing override of the method is still effective. Closes gh-18519
66d4319a