File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
spring-context/src/main/java/org/springframework/context/support Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -81,14 +81,9 @@ public ApplicationContextAwareProcessor(ConfigurableApplicationContext applicati
81
81
@ Override
82
82
@ Nullable
83
83
public Object postProcessBeforeInitialization (Object bean , String beanName ) throws BeansException {
84
- if (!((bean instanceof Aware ) && (bean instanceof EnvironmentAware || bean instanceof EmbeddedValueResolverAware ||
85
- bean instanceof ResourceLoaderAware || bean instanceof ApplicationEventPublisherAware ||
86
- bean instanceof MessageSourceAware || bean instanceof ApplicationStartupAware ||
87
- bean instanceof ApplicationContextAware ))) {
88
- return bean ;
84
+ if (bean instanceof Aware ) {
85
+ invokeAwareInterfaces (bean );
89
86
}
90
-
91
- invokeAwareInterfaces (bean );
92
87
return bean ;
93
88
}
94
89
You can’t perform that action at this time.
0 commit comments