|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.GenericTypeResolver
public abstract class GenericTypeResolver
Helper class for resolving generic types against type variables.
Mainly intended for usage within the framework, resolving method parameter types even when they are declared generically.
Only usable on Java 5. Use an appropriate JdkVersion check before calling this class, if a fallback for JDK 1.4 is desirable.
GenericCollectionTypeResolver
,
JdkVersion
Constructor Summary | |
---|---|
GenericTypeResolver()
|
Method Summary | |
---|---|
static Type |
getTargetType(MethodParameter methodParam)
Determine the target type for the given parameter specification. |
static Class |
resolveParameterType(MethodParameter methodParam,
Class clazz)
Determine the target type for the given generic parameter type. |
static Class |
resolveReturnType(Method method,
Class clazz)
Determine the target type for the generic return type of the given method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenericTypeResolver()
Method Detail |
---|
public static Type getTargetType(MethodParameter methodParam)
methodParam
- the method parameter specification
public static Class resolveParameterType(MethodParameter methodParam, Class clazz)
methodParam
- the method parameter specificationclazz
- the class to resolve type variables against
public static Class resolveReturnType(Method method, Class clazz)
method
- the method to introspectclazz
- the class to resolve type variables against
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |