Class InvocableHandlerMethodSupport
java.lang.Object
org.springframework.graphql.data.method.HandlerMethod
org.springframework.graphql.data.method.InvocableHandlerMethodSupport
- Direct Known Subclasses:
- BatchLoaderHandlerMethod,- DataFetcherHandlerMethodSupport
Extension of 
HandlerMethod that adds support for invoking the
 underlying handler methods.- Since:
- 1.0.0
- Author:
- Rossen Stoyanchev
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.graphql.data.method.HandlerMethodHandlerMethod.HandlerMethodParameter
- 
Field SummaryFields inherited from class org.springframework.graphql.data.method.HandlerMethodlogger
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedInvocableHandlerMethodSupport(HandlerMethod handlerMethod, @Nullable Executor executor) Deprecated, for removal: This API element is subject to removal in a future version.in favor of alternative constructorprotectedInvocableHandlerMethodSupport(HandlerMethod handlerMethod, @Nullable Executor executor, boolean invokeAsync) Create an instance.
- 
Method SummaryModifier and TypeMethodDescriptionprotected @Nullable ObjectInvoke the handler method with the given argument values.protected reactor.core.publisher.Mono<@Nullable Object[]> toArgsMono(@Nullable Object[] args) Use this method to resolve the arguments asynchronously.Methods inherited from class org.springframework.graphql.data.method.HandlerMethodassertTargetBean, createWithResolvedBean, equals, findProvidedArgument, formatArgumentError, formatInvokeError, getBean, getBeanType, getBridgedMethod, getMethod, getMethodAnnotation, getMethodParameters, getReturnType, getReturnValueType, getShortLogMessage, hashCode, hasMethodAnnotation, isVoid, toString
- 
Constructor Details- 
InvocableHandlerMethodSupport@Deprecated(since="1.3.0", forRemoval=true) protected InvocableHandlerMethodSupport(HandlerMethod handlerMethod, @Nullable Executor executor) Deprecated, for removal: This API element is subject to removal in a future version.in favor of alternative constructorCreate an instance.
- 
InvocableHandlerMethodSupportprotected InvocableHandlerMethodSupport(HandlerMethod handlerMethod, @Nullable Executor executor, boolean invokeAsync) Create an instance.
 
- 
- 
Method Details- 
doInvokeprotected @Nullable Object doInvoke(graphql.GraphQLContext graphQLContext, @Nullable Object... argValues) Invoke the handler method with the given argument values.- Parameters:
- graphQLContext- the GraphQL context for this data fetching operation
- argValues- the values to use to invoke the method
- Returns:
- the value returned from the method or a Mono<Throwable>if the invocation fails.
 
- 
toArgsMono
 
-