Interface EnumValuesProvider

All Known Implementing Classes:
MapEnumValuesProvider, NaturalEnumValuesProvider

@PublicSpi public interface EnumValuesProvider
Provides the Java runtime value for each graphql Enum value. Used for IDL driven schema creation.

Enum values are considered static: This is called when a schema is created. It is not used when a query is executed.

  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • getValue

      Object getValue(String name)
      Parameters:
      name - an Enum value
      Returns:
      not null