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.
@@ -818,11 +818,11 @@ protected Class<?> getTypeForFactoryMethod(String beanName, RootBeanDefinition m
818
818
/**
819
819
* This implementation attempts to query the FactoryBean's generic parameter metadata
820
820
* if present to determine the object type. If not present, i.e. the FactoryBean is
821
-
* declared as a raw type, checks the FactoryBean's {@code getObjectType} method
821
+
* declared as a raw type, it checks the FactoryBean's {@code getObjectType} method
822
822
* on a plain instance of the FactoryBean, without bean properties applied yet.
823
-
* If this doesn't return a type yet, and {@code allowInit} is {@code true} a
824
-
* full creation of the FactoryBean is used as fallback (through delegation to the
825
-
* superclass's implementation).
823
+
* If this doesn't return a type yet and {@code allowInit} is {@code true}, full
824
+
* creation of the FactoryBean is attempted as fallback (through delegation to the
825
+
* superclass implementation).
826
826
* <p>The shortcut check for a FactoryBean is only applied in case of a singleton
827
827
* FactoryBean. If the FactoryBean instance itself is not kept as singleton,
828
828
* 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
+58-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