Class DataFetchersDelegateImpl

java.lang.Object
com.graphql_java_generator.plugin.language.impl.DataFetchersDelegateImpl
All Implemented Interfaces:
DataFetchersDelegate

public class DataFetchersDelegateImpl extends Object implements DataFetchersDelegate
* This class represents a GraphQL Data Fetcher Delegate. A DataFetchersDelegate aggregates all DataFetcher for a GraphQL type. It is only used when in server mode, the GraphQL maven plugin generates on data fetcher delegate for each object whose fields need at least one data fetcher. This helps to limit the impact on the specific code, when the GraphQL schema changes. Their characteristics are read by GenerateCodeDocumentParser, and used by GenerateCodeGenerator and the Velocity templates to generate the code of the DataFechers, and their declaration in the GraphQLProvider.
Thus there are two kinds of DataFetchersDelegate:
The arguments for the data fetcher delegates are the arguments of its field.
Author:
etienne-sf
  • Constructor Details

    • DataFetchersDelegateImpl

      public DataFetchersDelegateImpl(Type type)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: DataFetchersDelegate
      The name of the DataFetcher. This name is a valid java classname identifier, and is the name to use as a method name.
      Specified by:
      getName in interface DataFetchersDelegate
      Returns: