Interface GeneratedConfigBeanMappers

All Known Subinterfaces:
GeneratedConfigBeanBuilder
All Known Implementing Classes:
GeneratedConfigBeanBuilderBase

public interface GeneratedConfigBeanMappers
Loosely modeled from io.helidon.config.spi.ConfigMapperProvider.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default <T> Optional<Function<Config,T>>
    __mapper(Class<T> type)
    A simple mapping function from config node to a typed value based on the expected class.
    Returns a map of mapper functions associated with appropriate target type (Class<?>.
  • Method Details

    • __mappers

      Map<Class<?>,Function<Config,?>> __mappers()
      Returns a map of mapper functions associated with appropriate target type (Class<?>.
      Returns:
      a map of config mapper functions, never null
    • __mapper

      default <T> Optional<Function<Config,T>> __mapper(Class<T> type)
      A simple mapping function from config node to a typed value based on the expected class.
      Type Parameters:
      T - type returned from conversion
      Parameters:
      type - type of the expected mapping result
      Returns:
      function to convert config node to the expected type, or empty if the type is not supported by this provider