-
- All Implemented Interfaces:
-
com.expediagroup.graphql.generator.execution.KotlinDataFetcherFactoryProvider
public class SimpleKotlinDataFetcherFactoryProvider implements KotlinDataFetcherFactoryProvider
SimpleKotlinDataFetcherFactoryProvider is the default data fetcher factory provider that is used during schema construction to obtain DataFetcherFactory that should be used for target function and property resolution.
-
-
Constructor Summary
Constructors Constructor Description SimpleKotlinDataFetcherFactoryProvider()
-
Method Summary
Modifier and Type Method Description DataFetcherFactory<Object>
functionDataFetcherFactory(Object target, KFunction<?> kFunction)
Retrieve an instance of DataFetcherFactory that will be used to resolve target function. DataFetcherFactory<Object>
propertyDataFetcherFactory(KClass<?> kClass, KProperty<?> kProperty)
Retrieve an instance of DataFetcherFactory that will be used to resolve target property. -
-
Method Detail
-
functionDataFetcherFactory
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
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
-
-
-
-