Class DataFetcherHandlerMethodSupport
java.lang.Object
org.springframework.graphql.data.method.HandlerMethod
org.springframework.graphql.data.method.InvocableHandlerMethodSupport
org.springframework.graphql.data.method.annotation.support.DataFetcherHandlerMethodSupport
- Direct Known Subclasses:
DataFetcherHandlerMethod
Extension of
InvocableHandlerMethodSupport
for handler methods that
resolve argument values from a DataFetchingEnvironment
.- Since:
- 1.3.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.graphql.data.method.HandlerMethod
HandlerMethod.HandlerMethodParameter
-
Field Summary
FieldsFields inherited from class org.springframework.graphql.data.method.HandlerMethod
logger
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DataFetcherHandlerMethodSupport
(HandlerMethod handlerMethod, HandlerMethodArgumentResolverComposite resolvers, Executor executor, boolean invokeAsync) -
Method Summary
Modifier and TypeMethodDescriptionprotected Object[]
getMethodArgumentValues
(DataFetchingEnvironment environment, Object... providedArgs) Get the method argument values for the current request, checking the provided argument values and falling back to the configured argument resolvers.Return the configured argument resolvers.Methods inherited from class org.springframework.graphql.data.method.InvocableHandlerMethodSupport
doInvoke, toArgsMono
Methods inherited from class org.springframework.graphql.data.method.HandlerMethod
assertTargetBean, createWithResolvedBean, equals, findProvidedArgument, formatArgumentError, formatInvokeError, getBean, getBeanType, getBridgedMethod, getMethod, getMethodAnnotation, getMethodParameters, getReturnType, getReturnValueType, getShortLogMessage, hashCode, hasMethodAnnotation, isVoid, toString
-
Field Details
-
resolvers
-
-
Constructor Details
-
DataFetcherHandlerMethodSupport
protected DataFetcherHandlerMethodSupport(HandlerMethod handlerMethod, HandlerMethodArgumentResolverComposite resolvers, @Nullable Executor executor, boolean invokeAsync)
-
-
Method Details
-
getResolvers
Return the configured argument resolvers. -
getMethodArgumentValues
protected Object[] getMethodArgumentValues(DataFetchingEnvironment environment, Object... providedArgs) throws Exception Get the method argument values for the current request, checking the provided argument values and falling back to the configured argument resolvers.- Parameters:
environment
- the data fetching environment to resolve arguments fromprovidedArgs
- the arguments provided directly- Throws:
Exception
-