Class SinglePropertyResolver


  • public class SinglePropertyResolver
    extends Object
    • Constructor Detail

      • SinglePropertyResolver

        public SinglePropertyResolver()
    • Method Detail

      • resolveProperty

        public static <T> ResolverResult<T> resolveProperty​(PropertyResolutionSettings<T> settings)
        Resolves a configuration property in the following order:
        1. System property with the given system property key
        2. System property with the default system property key
        3. Environment variable with the given variable name
        4. Environment variable with the default variable name
        5. The value from an external configuration file with the given key
        6. The value from an external configuration file with the default key
        7. The value from a given supplier
        8. The value explicitly given
        Type Parameters:
        T - The type of the value to be returned
        Parameters:
        settings - A set of settings to figure out the resolution process
        Returns:
        The resolved value