Class StackTraceUtils

java.lang.Object
org.springframework.integration.util.StackTraceUtils

public final class StackTraceUtils
extends java.lang.Object
Utility methods for analyzing stack traces.
Since:
3.0
  • Method Summary

    Modifier and Type Method Description
    static boolean isFrameContainingXBeforeFrameContainingY​(java.lang.String firstClass, java.lang.String secondClass, java.lang.StackTraceElement[] stackTrace)
    Traverses the stack trace element array looking for instances that contain the first or second Strings in the className property.

    Methods inherited from class java.lang.Object

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

    • isFrameContainingXBeforeFrameContainingY

      public static boolean isFrameContainingXBeforeFrameContainingY​(java.lang.String firstClass, java.lang.String secondClass, java.lang.StackTraceElement[] stackTrace)
      Traverses the stack trace element array looking for instances that contain the first or second Strings in the className property.
      Parameters:
      firstClass - The first class to look for.
      secondClass - The second class to look for.
      stackTrace - The stack trace.
      Returns:
      true if the first class appears first, false if the second appears first
      Throws:
      java.lang.IllegalArgumentException - if neither class is found.