Skip to content

Commit c495cbb

Browse files
committed
MergedBeanDefinitionPostProcessors apply after all other post-processors (for @PostConstruct to be invoked after other BPPs; SPR-6066)
1 parent 4e321b1 commit c495cbb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

org.springframework.beans/src/main/java/org/springframework/beans/factory/annotation/RequiredAnnotationBeanPostProcessor.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
import org.springframework.beans.factory.BeanInitializationException;
3333
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
3434
import org.springframework.beans.factory.config.InstantiationAwareBeanPostProcessorAdapter;
35+
import org.springframework.beans.factory.support.MergedBeanDefinitionPostProcessor;
36+
import org.springframework.beans.factory.support.RootBeanDefinition;
3537
import org.springframework.core.Conventions;
3638
import org.springframework.core.Ordered;
3739
import org.springframework.core.PriorityOrdered;
@@ -70,7 +72,7 @@
7072
* @see Required
7173
*/
7274
public class RequiredAnnotationBeanPostProcessor extends InstantiationAwareBeanPostProcessorAdapter
73-
implements PriorityOrdered, BeanFactoryAware {
75+
implements MergedBeanDefinitionPostProcessor, PriorityOrdered, BeanFactoryAware {
7476

7577
/**
7678
* Bean definition attribute that may indicate whether a given bean is supposed
@@ -127,6 +129,9 @@ public int getOrder() {
127129
}
128130

129131

132+
public void postProcessMergedBeanDefinition(RootBeanDefinition beanDefinition, Class beanType, String beanName) {
133+
}
134+
130135
@Override
131136
public PropertyValues postProcessPropertyValues(
132137
PropertyValues pvs, PropertyDescriptor[] pds, Object bean, String beanName)

0 commit comments

Comments
 (0)