Fixed type prediction for generic factory methods

We're consistently resolving class names now, and the entire algorithm moved from GenericTypeResolver to the internal AutowireUtils helper in the bean factory package.

Issue: SPR-10411
(cherry picked from commit 8b1927f)
This commit is contained in:
Juergen Hoeller
2013-10-14 23:34:52 +02:00
parent b62652aca1
commit b9135788b9
5 changed files with 312 additions and 69 deletions

View File

@@ -131,8 +131,10 @@ public abstract class GenericTypeResolver {
* invoked, never {@code null}
* @return the resolved target return type, the standard return type, or {@code null}
* @since 3.2
* @see #resolveReturnType
* @deprecated in favor of resolveReturnTypeForFactoryMethod in the internal
* AutowireUtils class in the beans module; we do not expect other use of it!
*/
@Deprecated
public static Class<?> resolveReturnTypeForGenericMethod(Method method, Object[] args) {
Assert.notNull(method, "Method must not be null");
Assert.notNull(args, "Argument array must not be null");