public class AnnotatedDataFetcher extends Object implements DataFetcher<Object>
DataFetcher that wrap and invokes a HandlerMethod.| Constructor and Description |
|---|
AnnotatedDataFetcher(FieldCoordinates coordinates,
HandlerMethod handlerMethod,
HandlerMethodArgumentResolverComposite resolvers) |
| Modifier and Type | Method and Description |
|---|---|
Object |
get(DataFetchingEnvironment environment) |
FieldCoordinates |
getCoordinates()
Return the
FieldCoordinates the HandlerMethod is mapped to. |
HandlerMethod |
getHandlerMethod()
Return the
HandlerMethod used to fetch data. |
public AnnotatedDataFetcher(FieldCoordinates coordinates, HandlerMethod handlerMethod, HandlerMethodArgumentResolverComposite resolvers)
public FieldCoordinates getCoordinates()
FieldCoordinates the HandlerMethod is mapped to.public HandlerMethod getHandlerMethod()
HandlerMethod used to fetch data.public Object get(DataFetchingEnvironment environment) throws Exception
get in interface DataFetcher<Object>Exception