Class RuntimeHints

java.lang.Object
org.springframework.aot.hint.RuntimeHints

public class RuntimeHints extends Object
Hints that can be used to optimize the application runtime.

The use of reflection can be recorded for individual members of a type, lambdas, or broader member categories.

Access to resources can be specified using patterns or the base name of a resource bundle.

The need for Java serialization or proxies can be recorded as well.

Since:
6.0
Author:
Stephane Nicoll, Janne Valkealahti
  • Constructor Details

    • RuntimeHints

      public RuntimeHints()
  • Method Details

    • reflection

      public ReflectionHints reflection()
      Provide access to reflection-based hints.
      Returns:
      reflection hints
    • resources

      public ResourceHints resources()
      Provide access to resource-based hints.
      Returns:
      resource hints
    • serialization

      @Deprecated(since="7.0.6", forRemoval=true) public SerializationHints serialization()
      Deprecated, for removal: This API element is subject to removal in a future version.
      in favor of reflection()
      Provide access to serialization-based hints.
      Returns:
      serialization hints
    • proxies

      public ProxyHints proxies()
      Provide access to proxy-based hints.
      Returns:
      proxy hints
    • jni

      public ReflectionHints jni()
      Provide access to JNI-based hints.
      Returns:
      JNI hints