Interface RuntimeHintsRegistrar

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RuntimeHintsRegistrar
Contract for registering RuntimeHints in a static fashion.

Implementations will contribute hints without any knowledge of the application context and can only use the given ClassLoader to conditionally contribute hints.

RuntimeHintsRegistrar can be declared as spring/aot.factories entries; the registrar will be processed as soon as its declaration is found in the classpath. A standard no-arg constructor is required for implementations.

Since:
6.0
Author:
Brian Clozel
  • Method Details

    • registerHints

      void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader)
      Contribute hints to the given RuntimeHints instance.
      Parameters:
      hints - the hints contributed so far for the application
      classLoader - the classloader, or null if even the system ClassLoader isn't accessible