public class KotlinDataFetcherFactoryProvider
DataFetcherFactoryProvider is used during schema construction to obtain DataFetcherFactory that should be used for target function and property resolution.
Constructor and Description |
---|
KotlinDataFetcherFactoryProvider(SchemaGeneratorHooks hooks)
DataFetcherFactoryProvider is used during schema construction to obtain DataFetcherFactory that should be used
for target function and property resolution.
|
Modifier and Type | Method and Description |
---|---|
graphql.schema.DataFetcherFactory<java.lang.Object> |
functionDataFetcherFactory(java.lang.Object target,
kotlin.reflect.KFunction<?> kFunction)
Retrieve instance of DataFetcherFactory that will be used to resolve target function.
|
graphql.schema.DataFetcherFactory<java.lang.Object> |
propertyDataFetcherFactory(kotlin.reflect.KClass<?> kClass,
kotlin.reflect.KProperty<?> kProperty)
Retrieve instance of DataFetcherFactory that will be used to resolve target property.
|
public KotlinDataFetcherFactoryProvider(SchemaGeneratorHooks hooks)
DataFetcherFactoryProvider is used during schema construction to obtain DataFetcherFactory that should be used for target function and property resolution.
public graphql.schema.DataFetcherFactory<java.lang.Object> functionDataFetcherFactory(java.lang.Object target, kotlin.reflect.KFunction<?> kFunction)
Retrieve instance of DataFetcherFactory that will be used to resolve target function.
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 invokedpublic graphql.schema.DataFetcherFactory<java.lang.Object> propertyDataFetcherFactory(kotlin.reflect.KClass<?> kClass, kotlin.reflect.KProperty<?> kProperty)
Retrieve instance of DataFetcherFactory that will be used to resolve target property.
kClass
- parent class that contains this propertykProperty
- Kotlin property that should be resolved