接口 RuntimeHintsRegistrar

所有已知实现类:
ObjectToObjectConverterRuntimeHints, TodayPropertiesRuntimeHints, TodayStrategiesRuntimeHints
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface RuntimeHintsRegistrar
Contract for registering RuntimeHints based on the ClassLoader of the deployment unit. Implementations should, if possible, use the specified ClassLoader to determine if hints have to be contributed.

Implementations of this interface can be registered dynamically by using @ImportRuntimeHints or statically in META-INF/config/aot.factories by using the FQN of this interface as the key. A standard no-arg constructor is required for implementations.

从以下版本开始:
4.0
作者:
Brian Clozel, Stephane Nicoll
  • 方法详细资料

    • registerHints

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