- All Known Implementing Classes:
HelidonConfigResolver
public interface ConfigResolver
Contract for resolving a configuration builder attribute element to the backing
Config.-
Method Summary
Modifier and TypeMethodDescription<T> Optional<T>of(ResolutionContext ctx, Map<String, Map<String, Object>> meta, ConfigResolverRequest<T> request) Resolves aConfigBeansingular element value from the backingConfig.<T> Optional<Collection<T>>ofCollection(ResolutionContext ctx, Map<String, Map<String, Object>> meta, ConfigResolverRequest<T> request) Resolves aConfigBeancollection-like element value from the backingConfig.ofMap(ResolutionContext ctx, Map<String, Map<String, Object>> meta, ConfigResolverMapRequest<K, V> request) Resolves aConfigBeanmap-like element value from the backingConfig.
-
Method Details
-
of
<T> Optional<T> of(ResolutionContext ctx, Map<String, Map<String, Object>> meta, ConfigResolverRequest<T> request) Resolves aConfigBeansingular element value from the backingConfig.- Type Parameters:
T- the attribute value type being resolved in the request- Parameters:
ctx- the resolution contextmeta- the meta attributes for this config beanrequest- the request- Returns:
- the resolved value or empty if unable to resolve the request
-
ofCollection
<T> Optional<Collection<T>> ofCollection(ResolutionContext ctx, Map<String, Map<String, Object>> meta, ConfigResolverRequest<T> request) Resolves aConfigBeancollection-like element value from the backingConfig.- Type Parameters:
T- the attribute value type being resolved in the request- Parameters:
ctx- the resolution contextmeta- the meta attributes for this config beanrequest- the request- Returns:
- the resolved value or empty if unable to resolve the request
-
ofMap
<K,V> Optional<Map<K,V>> ofMap(ResolutionContext ctx, Map<String, Map<String, Object>> meta, ConfigResolverMapRequest<K, V> request) Resolves aConfigBeanmap-like element value from the backingConfig.- Type Parameters:
K- the map attribute key type being resolved in the requestV- the map attribute value type being resolved in the request- Parameters:
ctx- the resolution contextmeta- the meta attributes for this config beanrequest- the request- Returns:
- the resolved value or empty if unable to resolve the request
-