Interface NativeConfiguration


  • public interface NativeConfiguration
    Marker interface for class annotated with NativeHint and related annotations, and provide an SPI for providing programmatic hints when declarative annotations are not flexible enough.
    Author:
    Andy Clement, Sebastien Deleuze
    • Method Detail

      • isValid

        default boolean isValid​(AotOptions aotOptions)
        Implementing this method enables hints on the @NativeConfiguration implementation to be conditional on some programmatic test.
        Parameters:
        aotOptions - the AOT options configured for this build.
        Returns:
        true if the hints on this configuration should apply.
      • computeHints

        default void computeHints​(NativeConfigurationRegistry registry,
                                  AotOptions aotOptions)
        Parameters:
        registry - the registry that allows to register native configuration.
        aotOptions - the AOT options configured for this build.