Polish contribution

Closes gh-1203
This commit is contained in:
Stephane Nicoll 2016-10-26 09:49:50 +02:00
parent 2980e59298
commit 3a34cdba81
1 changed files with 28 additions and 24 deletions

View File

@ -63,31 +63,35 @@ import org.springframework.core.ResolvableType;
* are supposed to override beans of the same name in any parent factory. * are supposed to override beans of the same name in any parent factory.
* *
* <p>Bean factory implementations should support the standard bean lifecycle interfaces * <p>Bean factory implementations should support the standard bean lifecycle interfaces
* as far as possible. The full set of initialization methods and their standard order is:<br> * as far as possible. The full set of initialization methods and their standard order is:
* 1. BeanNameAware's {@code setBeanName}<br> * <ol>
* 2. BeanClassLoaderAware's {@code setBeanClassLoader}<br> * <li>BeanNameAware's {@code setBeanName}
* 3. BeanFactoryAware's {@code setBeanFactory}<br> * <li>BeanClassLoaderAware's {@code setBeanClassLoader}
* 4. EnvironmentAware's {@code setEnvironment}<br> * <li>BeanFactoryAware's {@code setBeanFactory}
* 5. EmbeddedValueResolverAware's {@code setEmbeddedValueResolver}<br> * <li>EnvironmentAware's {@code setEnvironment}
* 6. ResourceLoaderAware's {@code setResourceLoader} * <li>EmbeddedValueResolverAware's {@code setEmbeddedValueResolver}
* (only applicable when running in an application context)<br> * <li>ResourceLoaderAware's {@code setResourceLoader}
* 7. ApplicationEventPublisherAware's {@code setApplicationEventPublisher} * (only applicable when running in an application context)
* (only applicable when running in an application context)<br> * <li>ApplicationEventPublisherAware's {@code setApplicationEventPublisher}
* 8. MessageSourceAware's {@code setMessageSource} * (only applicable when running in an application context)
* (only applicable when running in an application context)<br> * <li>MessageSourceAware's {@code setMessageSource}
* 9. ApplicationContextAware's {@code setApplicationContext} * (only applicable when running in an application context)
* (only applicable when running in an application context)<br> * <li>ApplicationContextAware's {@code setApplicationContext}
* 10. ServletContextAware's {@code setServletContext} * (only applicable when running in an application context)
* (only applicable when running in a web application context)<br> * <li>ServletContextAware's {@code setServletContext}
* 11. {@code postProcessBeforeInitialization} methods of BeanPostProcessors<br> * (only applicable when running in a web application context)
* 12. InitializingBean's {@code afterPropertiesSet}<br> * <li>{@code postProcessBeforeInitialization} methods of BeanPostProcessors
* 13. a custom init-method definition<br> * <li>InitializingBean's {@code afterPropertiesSet}
* 14. {@code postProcessAfterInitialization} methods of BeanPostProcessors * <li>a custom init-method definition
* <li>{@code postProcessAfterInitialization} methods of BeanPostProcessors
* </ol>
* *
* <p>On shutdown of a bean factory, the following lifecycle methods apply:<br> * <p>On shutdown of a bean factory, the following lifecycle methods apply:
* 1. {@code postProcessBeforeDestruction} methods of DestructionAwareBeanPostProcessors * <ol>
* 2. DisposableBean's {@code destroy}<br> * <li>{@code postProcessBeforeDestruction} methods of DestructionAwareBeanPostProcessors
* 3. a custom destroy-method definition * <li>DisposableBean's {@code destroy}
* <li>a custom destroy-method definition
* </ol>
* *
* @author Rod Johnson * @author Rod Johnson
* @author Juergen Hoeller * @author Juergen Hoeller