AbstractApplicationContext allows for re-refresh and re-close

Issue: SPR-13425
This commit is contained in:
Juergen Hoeller
2015-09-04 14:38:23 +02:00
parent c663fd551a
commit 811de8e50b
2 changed files with 20 additions and 13 deletions

View File

@@ -567,6 +567,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
*/
protected void prepareRefresh() {
this.startupDate = System.currentTimeMillis();
this.closed.set(false);
this.active.set(true);
if (logger.isInfoEnabled()) {