Class RecordedInvocationsPublisher

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

public abstract class RecordedInvocationsPublisher extends Object
Publishes invocations on method relevant to RuntimeHints, as they are recorded by the RuntimeHintsAgent.

Components interested in this can register and deregister themselves at any point at runtime.

Since:
6.0
Author:
Brian Clozel
  • Method Details

    • addListener

      public static void addListener(RecordedInvocationsListener listener)
      Register the given invocations listener.
      Parameters:
      listener - the listener to be notified about recorded invocations
    • removeListener

      public static void removeListener(RecordedInvocationsListener listener)
      Deregister the given invocations listener.
      Parameters:
      listener - the listener that was notified about recorded invocations