|
|
|
@ -166,11 +166,12 @@ public interface ConfigurableApplicationContext extends ApplicationContext, Life |
|
|
|
void addProtocolResolver(ProtocolResolver resolver); |
|
|
|
void addProtocolResolver(ProtocolResolver resolver); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Load or refresh the persistent representation of the configuration, |
|
|
|
* Load or refresh the persistent representation of the configuration, which |
|
|
|
* which might an XML file, properties file, or relational database schema. |
|
|
|
* might be from Java-based configuration, an XML file, a properties file, a |
|
|
|
|
|
|
|
* relational database schema, or some other format. |
|
|
|
* <p>As this is a startup method, it should destroy already created singletons |
|
|
|
* <p>As this is a startup method, it should destroy already created singletons |
|
|
|
* if it fails, to avoid dangling resources. In other words, after invocation |
|
|
|
* if it fails, to avoid dangling resources. In other words, after invocation |
|
|
|
* of that method, either all or no singletons at all should be instantiated. |
|
|
|
* of this method, either all or no singletons at all should be instantiated. |
|
|
|
* @throws BeansException if the bean factory could not be initialized |
|
|
|
* @throws BeansException if the bean factory could not be initialized |
|
|
|
* @throws IllegalStateException if already initialized and multiple refresh |
|
|
|
* @throws IllegalStateException if already initialized and multiple refresh |
|
|
|
* attempts are not supported |
|
|
|
* attempts are not supported |
|
|
|
|