org.springframework.boot.origin

Interface Origin

    • Method Detail

      • getParent

        default Origin getParent()
        Return the parent origin for this instance if there is one. The parent origin provides the origin of the item that created this one.
        Returns:
        the parent origin or null
        Since:
        2.4.0
        See Also:
        parentsFrom(Object)
      • from

        static Origin from(java.lang.Object source)
        Find the Origin that an object originated from. Checks if the source object is an Origin or OriginProvider and also searches exception stacks.
        Parameters:
        source - the source object or null
        Returns:
        an optional Origin
      • parentsFrom

        static java.util.List<Origin> parentsFrom(java.lang.Object source)
        Find the parents of the Origin that an object originated from. Checks if the source object is an Origin or OriginProvider and also searches exception stacks. Provides a list of all parents up to root Origin, starting with the most immediate parent.
        Parameters:
        source - the source object or null
        Returns:
        a list of parents or an empty list if the source is null, has no origin, or no parent
        Since:
        2.4.0