Class StackUtils
java.lang.Object
ru.vyarus.dropwizard.guice.module.installer.util.StackUtils
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 Summary
Modifier and TypeMethodDescriptionstatic Optional<StackWalker.StackFrame>static StringgetCallerSource(List<Class<?>> skip) static String
-
Method Details
-
getCaller
- Parameters:
skip- classes to skip in stack- Returns:
- caller stack frame
-
getCallerSource
- Parameters:
skip- classes to skip in stack- Returns:
- formatted caller source
-