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 HandlerMethod
HandlerMethod.HandlerMethodParameter -
Field Summary
FieldsFields inherited from class HandlerMethod
logger -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataFetcherHandlerMethodSupport(HandlerMethod handlerMethod, HandlerMethodArgumentResolverComposite resolvers, @Nullable Executor executor, boolean invokeAsync) -
Method Summary
Modifier and TypeMethodDescriptionprotected @Nullable Object[]getMethodArgumentValues(graphql.schema.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 InvocableHandlerMethodSupport
doInvoke, toArgsMonoMethods inherited from class 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 @Nullable Object[] getMethodArgumentValues(graphql.schema.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
-