Interface ConfigResolver

All Known Implementing Classes:
HelidonConfigResolver

public interface ConfigResolver
Contract for resolving a configuration builder attribute element to the backing Config.
  • Method Details

    • of

      <T> Optional<T> of(ResolutionContext ctx, Map<String,Map<String,Object>> meta, ConfigResolverRequest<T> request)
      Resolves a ConfigBean singular element value from the backing Config.
      Type Parameters:
      T - the attribute value type being resolved in the request
      Parameters:
      ctx - the resolution context
      meta - the meta attributes for this config bean
      request - 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 a ConfigBean collection-like element value from the backing Config.
      Type Parameters:
      T - the attribute value type being resolved in the request
      Parameters:
      ctx - the resolution context
      meta - the meta attributes for this config bean
      request - 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 a ConfigBean map-like element value from the backing Config.
      Type Parameters:
      K - the map attribute key type being resolved in the request
      V - the map attribute value type being resolved in the request
      Parameters:
      ctx - the resolution context
      meta - the meta attributes for this config bean
      request - the request
      Returns:
      the resolved value or empty if unable to resolve the request