Example usage for org.springframework.core ResolvableType forMethodParameter

List of usage examples for org.springframework.core ResolvableType forMethodParameter

Introduction

In this page you can find the example usage for org.springframework.core ResolvableType forMethodParameter.

Prototype

static ResolvableType forMethodParameter(MethodParameter methodParameter, @Nullable Type targetType,
        int nestingLevel) 

Source Link

Document

Return a ResolvableType for the specified MethodParameter at a specific nesting level, overriding the target type to resolve with a specific given type.

Usage

From source file:com.oembedler.moon.graphql.engine.dfs.ResolvableTypeAccessor.java

public static ResolvableTypeAccessor forMethodParameter(Method method, int argIndex, Class<?> implClass) {
    MethodParameter methodParameter = new MethodParameter(method, argIndex);
    ResolvableType resolvableType = ResolvableType.forMethodParameter(method, argIndex, implClass);
    return new ResolvableTypeAccessor("", resolvableType,
            Lists.newArrayList(methodParameter.getParameterAnnotations()), implClass);
}