@ -211,7 +211,11 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -211,7 +211,11 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@ -485,7 +489,6 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -485,7 +489,6 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@ -580,6 +583,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -580,6 +583,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@ -588,13 +592,23 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -588,13 +592,23 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
logger.info("Refreshing "+this);
}
// Initialize any placeholder property sources in the context environment
// Initialize any placeholder property sources in the context environment.
initPropertySources();
// Validate that all properties marked as required are resolvable
// Validate that all properties marked as required are resolvable:
// see ConfigurablePropertyResolver#setRequiredProperties
// Allow for the collection of early ApplicationEvents,
// to be published once the multicaster is available...
this.earlyApplicationEvents=newLinkedHashSet<>();
@ -986,6 +1000,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -986,6 +1000,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
*@see#registerShutdownHook()
*/
protectedvoiddoClose(){
// Check whether an actual close attempt is necessary...
@ -1020,6 +1035,13 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -1020,6 +1035,13 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
// Let subclasses do some final clean-up if they wish...
onClose();
// Reset local application listeners to pre-refresh state.
@ -1294,7 +1316,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
@@ -1294,7 +1316,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader