Javadoc references for resetBeanDefinition
Issue: SPR-17126
This commit is contained in:
@@ -959,7 +959,13 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
|
|||||||
/**
|
/**
|
||||||
* Reset all bean definition caches for the given bean,
|
* Reset all bean definition caches for the given bean,
|
||||||
* including the caches of beans that are derived from it.
|
* including the caches of beans that are derived from it.
|
||||||
|
* <p>Called after an existing bean definition has been replaced or removed,
|
||||||
|
* triggering {@link #clearMergedBeanDefinition}, {@link #destroySingleton}
|
||||||
|
* and {@link MergedBeanDefinitionPostProcessor#resetBeanDefinition} on the
|
||||||
|
* given bean and on all bean definitions that have the given bean as parent.
|
||||||
* @param beanName the name of the bean to reset
|
* @param beanName the name of the bean to reset
|
||||||
|
* @see #registerBeanDefinition
|
||||||
|
* @see #removeBeanDefinition
|
||||||
*/
|
*/
|
||||||
protected void resetBeanDefinition(String beanName) {
|
protected void resetBeanDefinition(String beanName) {
|
||||||
// Remove the merged bean definition for the given bean, if already created.
|
// Remove the merged bean definition for the given bean, if already created.
|
||||||
|
|||||||
@@ -42,14 +42,17 @@ public interface MergedBeanDefinitionPostProcessor extends BeanPostProcessor {
|
|||||||
* @param beanDefinition the merged bean definition for the bean
|
* @param beanDefinition the merged bean definition for the bean
|
||||||
* @param beanType the actual type of the managed bean instance
|
* @param beanType the actual type of the managed bean instance
|
||||||
* @param beanName the name of the bean
|
* @param beanName the name of the bean
|
||||||
|
* @see AbstractAutowireCapableBeanFactory#applyMergedBeanDefinitionPostProcessors
|
||||||
*/
|
*/
|
||||||
void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName);
|
void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A notification that the bean definition for the specified name has been reset,
|
* A notification that the bean definition for the specified name has been reset,
|
||||||
* and that this post-processor should clear any metadata for the affected bean.
|
* and that this post-processor should clear any metadata for the affected bean.
|
||||||
|
* <p>The default implementation is empty.
|
||||||
* @param beanName the name of the bean
|
* @param beanName the name of the bean
|
||||||
* @since 5.1
|
* @since 5.1
|
||||||
|
* @see DefaultListableBeanFactory#resetBeanDefinition
|
||||||
*/
|
*/
|
||||||
default void resetBeanDefinition(String beanName) {
|
default void resetBeanDefinition(String beanName) {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user