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 Detail

      • getValue

        java.lang.Object getValue​(java.lang.String name)
        Parameters:
        name - an Enum value
        Returns:
        not null