|
|||||||||
| 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.
GenericCollectionTypeResolver,
JdkVersion| Constructor Summary | |
|---|---|
GenericTypeResolver()
|
|
| Method Summary | |
|---|---|
static java.lang.reflect.Type |
getTargetType(MethodParameter methodParam)
Determine the target type for the given parameter specification. |
static java.lang.Class |
resolveParameterType(MethodParameter methodParam,
java.lang.Class clazz)
Determine the target type for the given generic parameter type. |
static java.lang.Class |
resolveReturnType(java.lang.reflect.Method method,
java.lang.Class clazz)
Determine the target type for the generic return type of the given method. |
static java.lang.reflect.Type |
resolveTypeVariable(java.lang.reflect.TypeVariable tv,
java.lang.Class clazz)
Resolve the given type variable against the given class. |
| 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 java.lang.reflect.Type getTargetType(MethodParameter methodParam)
methodParam - the method parameter specification
public static java.lang.Class resolveParameterType(MethodParameter methodParam,
java.lang.Class clazz)
methodParam - the method parameter specificationclazz - the class to resolve type variables against
public static java.lang.Class resolveReturnType(java.lang.reflect.Method method,
java.lang.Class clazz)
method - the method to introspectclazz - the class to resolve type variables against
public static java.lang.reflect.Type resolveTypeVariable(java.lang.reflect.TypeVariable tv,
java.lang.Class clazz)
tv - the type variable to resolveclazz - the class that defines the type variable
somewhere in its inheritance hierarchy
null if none found
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||