Package 

Class SimpleKotlinDataFetcherFactoryProvider

  • 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleKotlinDataFetcherFactoryProvider

        SimpleKotlinDataFetcherFactoryProvider()
    • 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.DataFetchingEnvironment
        kFunction - 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 property
        kProperty - Kotlin property that should be resolved