Interface ValueHintProvider
- All Known Implementing Classes:
BooleanValueHintProvider
,DefaultValueHintProvider
,EnumValueHintProvider
public interface ValueHintProvider
Interface to provide value hints that can be discovered for properties.
- Author:
- Eric Bottard
-
Method Summary
Modifier and TypeMethodDescriptionList<org.springframework.boot.configurationmetadata.ValueHint>
generateValueHints
(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty property, ClassLoader classLoader) For a given property, return a list ofValueHint
that may apply.boolean
isExclusive
(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty property) Returntrue
if the values returned by this provider are the only values that apply as completion proposals.
-
Method Details
-
generateValueHints
List<org.springframework.boot.configurationmetadata.ValueHint> generateValueHints(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty property, ClassLoader classLoader) For a given property, return a list ofValueHint
that may apply.- Parameters:
property
- property for which to generate value hintsclassLoader
- class loader for the artifact/module that this property applies to; this may be used to load other classes/resources for generating value hints- Returns:
- list of value hints for the provided property
-
isExclusive
boolean isExclusive(org.springframework.boot.configurationmetadata.ConfigurationMetadataProperty property) Returntrue
if the values returned by this provider are the only values that apply as completion proposals. If this returnstrue
, then no other kind of completion applies until one of the returned values has been typed in full.- Parameters:
property
- property for which to determine if the values returned by this provider are exclusive- Returns:
true
if the values returned by this provider are exclusive, thus requiring one of these values to be provided before any otherValueHintProvider
may be applied
-