You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractAutowireCapableBeanFactory.java
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2023 the original author or authors.
2
+
* Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -835,11 +835,11 @@ protected Class<?> getTypeForFactoryMethod(String beanName, RootBeanDefinition m
835
835
/**
836
836
* This implementation attempts to query the FactoryBean's generic parameter metadata
837
837
* if present to determine the object type. If not present, i.e. the FactoryBean is
838
-
* declared as a raw type, checks the FactoryBean's {@code getObjectType} method
838
+
* declared as a raw type, it checks the FactoryBean's {@code getObjectType} method
839
839
* on a plain instance of the FactoryBean, without bean properties applied yet.
840
-
* If this doesn't return a type yet, and {@code allowInit} is {@code true} a
841
-
* full creation of the FactoryBean is used as fallback (through delegation to the
842
-
* superclass's implementation).
840
+
* If this doesn't return a type yet and {@code allowInit} is {@code true}, full
841
+
* creation of the FactoryBean is attempted as fallback (through delegation to the
842
+
* superclass implementation).
843
843
* <p>The shortcut check for a FactoryBean is only applied in case of a singleton
844
844
* FactoryBean. If the FactoryBean instance itself is not kept as singleton,
845
845
* it will be fully created to check the type of its exposed object.
Copy file name to clipboardExpand all lines: spring-context/src/test/java/org/springframework/context/annotation/ConfigurationWithFactoryBeanEarlyDeductionTests.java
+60-40
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
/*
2
-
* Copyright 2002-2019 the original author or authors.
2
+
* Copyright 2002-2024 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
0 commit comments