org.springframework.boot.origin

Interface OriginLookup<K>

    • Method Detail

      • getOrigin

        Origin getOrigin(K key)
        Return the origin of the given key or null if the origin cannot be determined.
        Parameters:
        key - the key to lookup
        Returns:
        the origin of the key or null
      • isImmutable

        default boolean isImmutable()
        Return true if this lookup is immutable and has contents that will never change.
        Returns:
        if the lookup is immutable
        Since:
        2.2.0
      • getOrigin

        static <K> Origin getOrigin(Object source,
                                    K key)
        Attempt to lookup the origin from the given source. If the source is not a OriginLookup or if an exception occurs during lookup then null is returned.
        Type Parameters:
        K - the key type
        Parameters:
        source - the source object
        key - the key to lookup
        Returns:
        an Origin or null

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