Interface ConfigBeanMapper

All Known Subinterfaces:
ConfiguredServiceProvider<T,CB>
All Known Implementing Classes:
AbstractConfiguredServiceProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ConfigBeanMapper
Maps a Config instance to a newly created ConfigBean-annotated type instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    <C extends Config, T>
    Optional<T>
    toConfigBean(C config, Class<T> configBeanType)
    Translate the provided configuration into the appropriate config bean for this service type.
  • Method Details

    • toConfigBean

      <C extends Config, T> Optional<T> toConfigBean(C config, Class<T> configBeanType)
      Translate the provided configuration into the appropriate config bean for this service type.
      Type Parameters:
      C - the config type
      T - the config bean type
      Parameters:
      config - the config
      configBeanType - the config bean type
      Returns:
      the config bean generated, or empty if not possible to create