Package 

Interface KotlinDataFetcherFactoryProvider

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

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

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

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