Interface OriginLookup<K>
- Type Parameters:
K
- the lookup key type
- All Known Implementing Classes:
ConfigTreePropertySource
,OriginTrackedMapPropertySource
,SystemEnvironmentPropertySourceEnvironmentPostProcessor.OriginAwareSystemEnvironmentPropertySource
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface that may be implemented by an object that can lookup
Origin
information from a given key. Can be used to add origin support to existing classes.- Since:
- 2.0.0
- Author:
- Phillip Webb
-
Method Summary
-
Method Details
-
getOrigin
-
getOrigin
Attempt to look up the origin from the given source. If the source is not aOriginLookup
or if an exception occurs during lookup thennull
is returned.- Type Parameters:
K
- the key type- Parameters:
source
- the source objectkey
- the key to lookup- Returns:
- an
Origin
ornull
-