-
- All Implemented Interfaces:
public interface KotlinDataFetcherFactoryProvider
DataFetcherFactoryProvider is used during schema construction to obtain DataFetcherFactory that should be used for target function and property resolution.
-
-
Method Summary
Modifier and Type Method Description abstract DataFetcherFactory<Object>
functionDataFetcherFactory(Object target, KFunction<?> kFunction)
Retrieve an instance of DataFetcherFactory that will be used to resolve target function. abstract DataFetcherFactory<Object>
propertyDataFetcherFactory(KClass<?> kClass, KProperty<?> kProperty)
Retrieve an instance of DataFetcherFactory that will be used to resolve target property. -
-
Method Detail
-
functionDataFetcherFactory
abstract DataFetcherFactory<Object> functionDataFetcherFactory(Object target, KFunction<?> kFunction)
Retrieve an instance of DataFetcherFactory that will be used to resolve target function.
- Parameters:
target
- target object that performs the data fetching or NULL if target object should be dynamically retrieved during data fetcher execution from graphql.schema.DataFetchingEnvironmentkFunction
- Kotlin function being invoked
-
propertyDataFetcherFactory
abstract DataFetcherFactory<Object> propertyDataFetcherFactory(KClass<?> kClass, KProperty<?> kProperty)
Retrieve an instance of DataFetcherFactory that will be used to resolve target property.
- Parameters:
kClass
- parent class that contains this propertykProperty
- Kotlin property that should be resolved
-
-
-
-