Class RuntimeHintsAgent

java.lang.Object
org.springframework.aot.agent.RuntimeHintsAgent

@Deprecated(forRemoval=true) public final class RuntimeHintsAgent extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
as of 7.0 in favor of the -XX:MissingRegistrationReportingMode=Warn and -XX:MissingRegistrationReportingMode=Exit JVM flags with GraalVM.
Java Agent that records method invocations related to RuntimeHints metadata.

This agent uses class transformers that modify bytecode to intercept and record method invocations at runtime.

By default, this agent only instruments code in the org.springframework package. Instrumented packages can be configured by passing an argument string to the -javaagent option, as a comma-separated list of packages to instrument prefixed with "+" and packages to ignore prefixed with "-":

   -javaagent:/path/to/spring-core-test.jar=+org.springframework,-io.spring,+org.example")
 
Since:
6.0
Author:
Brian Clozel
See Also:
  • InvocationsRecorderClassTransformer
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Static accessor for detecting whether the agent is loaded in the current JVM.
    static void
    premain(String agentArgs, Instrumentation inst)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • premain

      public static void premain(@Nullable String agentArgs, Instrumentation inst)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • isLoaded

      public static boolean isLoaded()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Static accessor for detecting whether the agent is loaded in the current JVM.
      Returns:
      whether the agent is active for the current JVM