接口 MergedBeanDefinitionPostProcessor
- 所有超级接口:
BeanPostProcessor
- 所有已知实现类:
AutowiredAnnotationBeanPostProcessor
,CommonAnnotationBeanPostProcessor
,InitDestroyAnnotationBeanPostProcessor
,JmsListenerAnnotationBeanPostProcessor
,PersistenceAnnotationBeanPostProcessor
,RequiredAnnotationBeanPostProcessor
,ScheduledAnnotationBeanPostProcessor
public interface MergedBeanDefinitionPostProcessor extends 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 SpringBeanFactory
uses to create a bean instance.The
postProcessMergedBeanDefinition(org.springframework.beans.factory.support.RootBeanDefinition, java.lang.Class<?>, java.lang.String)
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 theRootBeanDefinition
itself but not to the properties of its base classes.- 从以下版本开始:
- 2.5
- 作者:
- Juergen Hoeller
- 另请参阅:
ConfigurableBeanFactory.getMergedBeanDefinition(java.lang.String)
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName)
Post-process the given merged bean definition for the specified bean.从接口继承的方法 org.springframework.beans.factory.config.BeanPostProcessor
postProcessAfterInitialization, postProcessBeforeInitialization
方法详细资料
postProcessMergedBeanDefinition
void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class<?> beanType, String beanName)
Post-process the given merged bean definition for the specified bean.- 参数:
beanDefinition
- the merged bean definition for the beanbeanType
- the actual type of the managed bean instancebeanName
- the name of the bean