mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Polishing
This commit is contained in:
+2
-2
@@ -202,7 +202,7 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
|
||||
/**
|
||||
* Set the {@link ProblemReporter} to use.
|
||||
* <p>Used to register any problems detected with {@link Configuration} or {@link Bean}
|
||||
* declarations. For instance, an @Bean method marked as {@code final} is illegal
|
||||
* declarations. For instance, a @Bean method marked as {@code final} is illegal
|
||||
* and would be reported as a problem. Defaults to {@link FailFastProblemReporter}.
|
||||
*/
|
||||
public void setProblemReporter(@Nullable ProblemReporter problemReporter) {
|
||||
@@ -312,8 +312,8 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
|
||||
beanFactory.addBeanPostProcessor(new ImportAwareBeanPostProcessor(beanFactory));
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@Override
|
||||
@Nullable
|
||||
public BeanRegistrationAotContribution processAheadOfTime(RegisteredBean registeredBean) {
|
||||
Object configClassAttr = registeredBean.getMergedBeanDefinition()
|
||||
.getAttribute(ConfigurationClassUtils.CONFIGURATION_CLASS_ATTRIBUTE);
|
||||
|
||||
+1
-1
@@ -792,7 +792,7 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
|
||||
PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(beanFactory, getBeanFactoryPostProcessors());
|
||||
|
||||
// Detect a LoadTimeWeaver and prepare for weaving, if found in the meantime
|
||||
// (for example, through an @Bean method registered by ConfigurationClassPostProcessor)
|
||||
// (for example, through a @Bean method registered by ConfigurationClassPostProcessor)
|
||||
if (!NativeDetector.inNativeImage() && beanFactory.getTempClassLoader() == null &&
|
||||
beanFactory.containsBean(LOAD_TIME_WEAVER_BEAN_NAME)) {
|
||||
beanFactory.addBeanPostProcessor(new LoadTimeWeaverAwareProcessor(beanFactory));
|
||||
|
||||
Reference in New Issue
Block a user