Interface WiringFactory

    • Method Detail

      • providesScalar

        default boolean providesScalar​(ScalarWiringEnvironment environment)
        This is called to ask if this factory can provide a custom scalar
        Parameters:
        environment - the wiring environment
        Returns:
        true if the factory can give out a type resolver
      • providesTypeResolver

        default boolean providesTypeResolver​(InterfaceWiringEnvironment environment)
        This is called to ask if this factory can provide a type resolver for the interface
        Parameters:
        environment - the wiring environment
        Returns:
        true if the factory can give out a type resolver
      • providesTypeResolver

        default boolean providesTypeResolver​(UnionWiringEnvironment environment)
        This is called to ask if this factory can provide a type resolver for the union
        Parameters:
        environment - the wiring environment
        Returns:
        true if the factory can give out a type resolver
      • providesDataFetcherFactory

        default boolean providesDataFetcherFactory​(FieldWiringEnvironment environment)
        This is called to ask if this factory can provide a DataFetcherFactory for the definition
        Parameters:
        environment - the wiring environment
        Returns:
        true if the factory can give out a data fetcher factory
      • providesSchemaDirectiveWiring

        default boolean providesSchemaDirectiveWiring​(SchemaDirectiveWiringEnvironment environment)
        This is called to ask if this factory can provide a schema directive wiring.

        SchemaDirectiveWiringEnvironment.getDirectives() contains all the directives available which may in fact be an empty list.

        Parameters:
        environment - the calling environment
        Returns:
        true if the factory can give out a schema directive wiring.
      • providesDataFetcher

        default boolean providesDataFetcher​(FieldWiringEnvironment environment)
        This is called to ask if this factory can provide a data fetcher for the definition
        Parameters:
        environment - the wiring environment
        Returns:
        true if the factory can give out a data fetcher
      • getDefaultDataFetcher

        default DataFetcher getDefaultDataFetcher​(FieldWiringEnvironment environment)
        All fields need a data fetcher of some sort and this method is called to provide the data fetcher that will be used if no specific one has been provided
        Parameters:
        environment - the wiring environment
        Returns:
        a DataFetcher