Skip to content

Commit

Permalink
Improve JavaDoc for ConfigurableApplicationContext.refresh()
Browse files Browse the repository at this point in the history
Closes gh-25380
  • Loading branch information
sbrannen committed Jul 10, 2020
1 parent 2c9e794 commit b769b73
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -166,11 +166,12 @@ public interface ConfigurableApplicationContext extends ApplicationContext, Life
void addProtocolResolver(ProtocolResolver resolver);

/**
* Load or refresh the persistent representation of the configuration,
* which might an XML file, properties file, or relational database schema.
* Load or refresh the persistent representation of the configuration, which
* 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
* 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 IllegalStateException if already initialized and multiple refresh
* attempts are not supported
Expand Down

0 comments on commit b769b73

Please sign in to comment.