java.lang.Object
ru.vyarus.dropwizard.guice.module.installer.util.StackUtils

public final class StackUtils extends Object
Utility for obtaining source file reference on method call. Used internally to track test extensions registration (to show navigation links in the debug report).
Since:
06.03.2025
  • Method Details

    • getCaller

      public static Optional<StackWalker.StackFrame> getCaller(List<Class<?>> skip)
      Parameters:
      skip - classes to skip in stack
      Returns:
      caller stack frame
    • getCallerSource

      public static String getCallerSource(List<Class<?>> skip)
      Parameters:
      skip - classes to skip in stack
      Returns:
      formatted caller source
    • getSharedStateSource

      public static String getSharedStateSource()
      Returns:
      shared state calling source