org.springframework.boot.origin

Interface Origin

  • All Known Implementing Classes:
    PropertySourceOrigin, SystemEnvironmentOrigin, TextResourceOrigin


    public interface Origin
    Interface that uniquely represents the origin of an item. For example, an item loaded from a File may have an origin made up of the file name along with line/column numbers.

    Implementations must provide sensible hashCode(), equals(...) and #toString() implementations.

    Since:
    2.0.0
    Author:
    Madhura Bhave, Phillip Webb
    See Also:
    OriginProvider
    • Method Detail

      • from

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

Copyright © 2020 Pivotal Software, Inc.. All rights reserved.