Top Description Methods
org.springframework.beans.factory.support

public Interface MergedBeanDefinitionPostProcessor

extends BeanPostProcessor
Known Direct Implementers
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor, org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor
Imports
org.springframework.beans.factory.config.BeanPostProcessor

Post-processor callback interface for merged bean definitions at runtime. BeanPostProcessor implementations may implement this sub-interface in order to post-process the merged bean definition (a processed copy of the original bean definition) that the Spring BeanFactory uses to create a bean instance.

The postProcessMergedBeanDefinition method may for example introspect the bean definition in order to prepare some cached metadata before post-processing actual instances of a bean. It is also allowed to modify the bean definition but only for definition properties which are actually intended for concurrent modification. Essentially, this only applies to operations defined on the RootBeanDefinition itself but not to the properties of its base classes.

Author
Juergen Hoeller
Since
2.5
See Also
org.springframework.beans.factory.config.ConfigurableBeanFactory#getMergedBeanDefinition

Method Summary

Modifier and TypeMethod and Description
public void
postProcessMergedBeanDefinition(RootBeanDefinition
the merged bean definition for the bean
beanDefinition
,
Class<?>
the actual type of the managed bean instance
beanType
,
String
the name of the bean
beanName
)

Post-process the given merged bean definition for the specified bean.

public default void
resetBeanDefinition(String
the name of the bean
beanName
)

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.

Inherited from org.springframework.beans.factory.config.BeanPostProcessor:
postProcessAfterInitializationpostProcessBeforeInitialization

Method Detail

postProcessMergedBeanDefinitionback to summary
public void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName)

Post-process the given merged bean definition for the specified bean.

Parameters
beanDefinition:RootBeanDefinition

the merged bean definition for the bean

beanType:Class<?>

the actual type of the managed bean instance

beanName:String

the name of the bean

See Also
AbstractAutowireCapableBeanFactory#applyMergedBeanDefinitionPostProcessors
resetBeanDefinitionback to summary
public default void resetBeanDefinition(String beanName)

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.

The default implementation is empty.

Parameters
beanName:String

the name of the bean

Since
5.1
See Also
DefaultListableBeanFactory#resetBeanDefinition